diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-11 20:59:07 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-09-11 21:00:38 +0300 |
commit | c700cdc39cdf6b8801b71b70f704d749650585fd (patch) | |
tree | cd3e0d4eb10729d64a4d8f3d6f2433e40e512e8d /source/filesystem.go | |
parent | ef3c4a56d8c5e62588b315cea800a15160ea4eb5 (diff) |
Replace some leftover os.Stat with hugofs.Source
Diffstat (limited to 'source/filesystem.go')
-rw-r--r-- | source/filesystem.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/filesystem.go b/source/filesystem.go index 82bcad6e6..5a6e331f1 100644 --- a/source/filesystem.go +++ b/source/filesystem.go @@ -119,7 +119,7 @@ func (f *Filesystem) shouldRead(filePath string, fi os.FileInfo) (bool, error) { jww.ERROR.Printf("Cannot read symbolic link '%s', error was: %s", filePath, err) return false, nil } - linkfi, err := os.Stat(link) + linkfi, err := hugofs.Source().Stat(link) if err != nil { jww.ERROR.Printf("Cannot stat '%s', error was: %s", link, err) return false, nil |