1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 02:08:37 +00:00

Report files and dirs

This commit is contained in:
Alexander Neumann 2015-02-21 14:05:02 +01:00
parent 2f3aa344af
commit 97b963ef1d

View file

@ -431,6 +431,7 @@ func (arch *Archiver) Snapshot(path string, parentSnapshot backend.ID) (*Snapsho
}
e.Result <- node
arch.p.Report(Stat{Files: 1})
case <-done:
// pipeline was cancelled
return
@ -482,6 +483,7 @@ func (arch *Archiver) Snapshot(path string, parentSnapshot backend.ID) (*Snapsho
node.blobs = Blobs{blob}
dir.Result <- node
arch.p.Report(Stat{Dirs: 1})
case <-done:
// pipeline was cancelled
return