Report errors, ignore files and continue. Closes #108

This commit is contained in:
Alexander Neumann committed 2015-03-15 15:48:05 +01:00
1 parent 1bb82afcf6
commit 71a57537ef
2 files changed
+23 -4

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ func walk(basedir, dir string, done chan struct{}, jobs chan<- Job, res chan<- R
fi, err := os.Lstat(subpath)
if err != nil {
select {
case jobs <- Entry{info: fi, error: err, result: ch}:
case jobs <- Entry{info: fi, error: err, basedir: basedir, path: filepath.Join(relpath, name), result: ch}:
case <-done:
return errCancelled
}