Skip to content

Commit

Permalink
Pass directory name to filters in LstatIfPossible in the same way as …
Browse files Browse the repository at this point in the history
…Readdir
  • Loading branch information
Evan Anderson authored and bep committed Mar 19, 2020
1 parent 52c159c commit cc2a5d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hugofs/filter_fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cc2a5d5

Please sign in to comment.