diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-06-07 22:11:15 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-06-07 22:11:15 +0200 |
commit | 49a104309d53af243b32443a59bdc2a6fc9beeef (patch) | |
tree | 3e94baabc1ec63078cea0884c9c19ccec62ae330 /source/filesystem.go | |
parent | 5be0448635fdf5fe6b1ee673e869f2b9baf1a5c6 (diff) | |
download | hugo-49a104309d53af243b32443a59bdc2a6fc9beeef.tar.gz hugo-49a104309d53af243b32443a59bdc2a6fc9beeef.zip |
hugolib: Fix live-reload regression for add/removal of dirs
This reverts commit b5b6e81c0269abf9b0f4bc6a127744a25344e5c6.
That change breaks watching of new directories (new dirs, deleted dirs).
Reopens #3325
Fixes #3569
Diffstat (limited to 'source/filesystem.go')
-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 ceea96ea5..a13128144 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 { |