diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-06-07 22:31:57 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-06-07 22:31:57 +0200 |
commit | bef5048580b38b0c29edef4eb8c67915033120e9 (patch) | |
tree | f9b256cda354507d20962a17c1d3d06384cd2348 /source | |
parent | 49a104309d53af243b32443a59bdc2a6fc9beeef (diff) | |
download | hugo-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.go | 4 |
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 { |