summaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-06-07 22:31:57 +0200
committerBjørn Erik Pedersen <[email protected]>2017-06-07 22:31:57 +0200
commitbef5048580b38b0c29edef4eb8c67915033120e9 (patch)
treef9b256cda354507d20962a17c1d3d06384cd2348 /source
parent49a104309d53af243b32443a59bdc2a6fc9beeef (diff)
downloadhugo-bef5048580b38b0c29edef4eb8c67915033120e9.tar.gz
hugo-bef5048580b38b0c29edef4eb8c67915033120e9.zip
Revert "hugolib: Fix live-reload regression for add/removal of dirs"
Never mind. The "adding dir" scenario didn't work anyway, so that will need another fix. This reverts commit 49a104309d53af243b32443a59bdc2a6fc9beeef. Closes ##3325
Diffstat (limited to 'source')
-rw-r--r--source/filesystem.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/filesystem.go b/source/filesystem.go
index a13128144..ceea96ea5 100644
--- a/source/filesystem.go
+++ b/source/filesystem.go
@@ -90,7 +90,7 @@ func (f *Filesystem) captureFiles() {
return nil
}
- b, err := f.shouldRead(filePath, fi)
+ b, err := f.ShouldRead(filePath, fi)
if err != nil {
return err
}
@@ -118,7 +118,7 @@ func (f *Filesystem) captureFiles() {
}
-func (f *Filesystem) shouldRead(filePath string, fi os.FileInfo) (bool, error) {
+func (f *Filesystem) ShouldRead(filePath string, fi os.FileInfo) (bool, error) {
if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
link, err := filepath.EvalSymlinks(filePath)
if err != nil {