lib/scanner: Fix previous commit: don't stop scan completely

This commit is contained in:
Jakob Borg 2017-01-05 15:05:49 +01:00
parent 926c88cfc4
commit 7a16dbd31d

View File

@ -281,8 +281,11 @@ func (w *walker) walkAndHashFiles(fchan, dchan chan protocol.FileInfo) filepath.
if err := w.walkSymlink(absPath, relPath, dchan); err != nil {
return err
}
// under no circumstances shall we descend into a symlink
return filepath.SkipDir
if info.IsDir() {
// under no circumstances shall we descend into a symlink
return filepath.SkipDir
}
return nil
case info.Mode().IsDir():
err = w.walkDir(relPath, info, dchan)