archiver: ignore dir nodes with errors

This commit is contained in:
Alexander Neumann 2015-11-07 11:42:28 +01:00
parent ea41a1045f
commit 4484a3ea0d
1 changed files with 7 additions and 0 deletions

View File

@ -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