Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/hugofs
diff options
context:
space:
mode:
authorEvan Anderson <evana@vmware.com>2020-03-19 20:51:17 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-19 22:09:34 +0300
commitcc2a5d52a4ad188d93aeb2d51d5c19c7661e098d (patch)
treeda17ea643374a88395e320733cdf3eaed1db26ae /hugofs
parent52c159c452ab7f48369b5cc9ecc57ecc8dc91654 (diff)
Pass directory name to filters in LstatIfPossible in the same way as Readdir
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/filter_fs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugofs/filter_fs.go b/hugofs/filter_fs.go
index ca9c33361..15373c2e5 100644
--- a/hugofs/filter_fs.go
+++ b/hugofs/filter_fs.go
@@ -153,7 +153,8 @@ func (fs *FilterFs) LstatIfPossible(name string) (os.FileInfo, bool, error) {
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