diff options
author | Bjørn Erik Pedersen <[email protected]> | 2016-09-11 19:59:07 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2016-09-11 20:00:38 +0200 |
commit | c700cdc39cdf6b8801b71b70f704d749650585fd (patch) | |
tree | cd3e0d4eb10729d64a4d8f3d6f2433e40e512e8d /source | |
parent | ef3c4a56d8c5e62588b315cea800a15160ea4eb5 (diff) | |
download | hugo-c700cdc39cdf6b8801b71b70f704d749650585fd.tar.gz hugo-c700cdc39cdf6b8801b71b70f704d749650585fd.zip |
Replace some leftover os.Stat with hugofs.Source
Diffstat (limited to 'source')
-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 |