mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
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 49a104309d
.
Closes ##3325
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user