mirror of
https://github.com/restic/restic.git
synced 2026-10-08 03:17:12 +00:00
Report errors, ignore files and continue. Closes #108
This commit is contained in:
1 parent
1bb82afcf6
commit
71a57537ef
2 files changed
+23
-4
No files matched your search
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user