shithub: hugo

Download patch

ref: cc2a5d52a4ad188d93aeb2d51d5c19c7661e098d
parent: 52c159c452ab7f48369b5cc9ecc57ecc8dc91654
author: Evan Anderson <evana@vmware.com>
date: Thu Mar 19 06:51:17 EDT 2020

Pass directory name to filters in LstatIfPossible in the same way as Readdir

--- a/hugofs/filter_fs.go
+++ b/hugofs/filter_fs.go
@@ -153,7 +153,8 @@
 		return decorateFileInfo(fi, fs, fs.getOpener(name), "", "", nil), false, nil
 	}
 
-	fs.applyFilters(name, -1, fi)
+	parent := filepath.Dir(name)
+	fs.applyFilters(parent, -1, fi)
 
 	return fi, b, nil