summaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-09-11 19:59:07 +0200
committerBjørn Erik Pedersen <[email protected]>2016-09-11 20:00:38 +0200
commitc700cdc39cdf6b8801b71b70f704d749650585fd (patch)
treecd3e0d4eb10729d64a4d8f3d6f2433e40e512e8d /source
parentef3c4a56d8c5e62588b315cea800a15160ea4eb5 (diff)
downloadhugo-c700cdc39cdf6b8801b71b70f704d749650585fd.tar.gz
hugo-c700cdc39cdf6b8801b71b70f704d749650585fd.zip
Replace some leftover os.Stat with hugofs.Source
Diffstat (limited to 'source')
-rw-r--r--source/filesystem.go2
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