forked from TrueCloudLab/restic
archiver: ignore dir nodes with errors
This commit is contained in:
parent
ea41a1045f
commit
4484a3ea0d
1 changed files with 7 additions and 0 deletions
|
@ -318,6 +318,13 @@ func (arch *Archiver) dirWorker(wg *sync.WaitGroup, p *Progress, done <-chan str
|
|||
}
|
||||
debug.Log("Archiver.dirWorker", "save dir %v (%d entries), error %v\n", dir.Path(), len(dir.Entries), dir.Error())
|
||||
|
||||
// ignore dir nodes with errors
|
||||
if dir.Error() != nil {
|
||||
dir.Result() <- nil
|
||||
p.Report(Stat{Errors: 1})
|
||||
continue
|
||||
}
|
||||
|
||||
tree := NewTree()
|
||||
|
||||
// wait for all content
|
||||
|
|
Loading…
Reference in a new issue