summaryrefslogtreecommitdiffstats
path: root/source/filesystem.go
diff options
context:
space:
mode:
Diffstat (limited to 'source/filesystem.go')
-rw-r--r--source/filesystem.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/filesystem.go b/source/filesystem.go
index 0f5358429..66270c589 100644
--- a/source/filesystem.go
+++ b/source/filesystem.go
@@ -14,6 +14,7 @@
package source
import (
+ "github.com/spf13/hugo/hugofs"
"io"
"os"
"path/filepath"
@@ -92,7 +93,12 @@ func (f *Filesystem) captureFiles() {
return err
}
- filepath.Walk(f.Base, walker)
+ err := helpers.SymbolicWalk(hugofs.SourceFs, f.Base, walker)
+
+ if err != nil {
+ jww.ERROR.Println(err)
+ }
+
}
func (f *Filesystem) shouldRead(filePath string, fi os.FileInfo) (bool, error) {