lib/scanner: Don't report error on missing items (fixes #5385) (#5387)

This commit is contained in:
Simon Frei
2018-12-17 14:52:15 +01:00
committed by GitHub
parent abb3fb8a31
commit c40c9a8d6a
2 changed files with 22 additions and 0 deletions

View File

@@ -535,7 +535,12 @@ func (w *walker) updateFileInfo(file, curFile protocol.FileInfo) protocol.FileIn
file.LocalFlags = w.LocalFlags
return file
}
func (w *walker) handleError(ctx context.Context, context, path string, err error, finishedChan chan<- ScanResult) {
// Ignore missing items, as deletions are not handled by the scanner.
if fs.IsNotExist(err) {
return
}
l.Infof("Scanner (folder %s, file %q): %s: %v", w.Folder, path, context, err)
select {
case finishedChan <- ScanResult{