mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 16:23:59 +00:00
Report files and dirs
This commit is contained in:
parent
2f3aa344af
commit
97b963ef1d
@ -431,6 +431,7 @@ func (arch *Archiver) Snapshot(path string, parentSnapshot backend.ID) (*Snapsho
|
|||||||
}
|
}
|
||||||
|
|
||||||
e.Result <- node
|
e.Result <- node
|
||||||
|
arch.p.Report(Stat{Files: 1})
|
||||||
case <-done:
|
case <-done:
|
||||||
// pipeline was cancelled
|
// pipeline was cancelled
|
||||||
return
|
return
|
||||||
@ -482,6 +483,7 @@ func (arch *Archiver) Snapshot(path string, parentSnapshot backend.ID) (*Snapsho
|
|||||||
node.blobs = Blobs{blob}
|
node.blobs = Blobs{blob}
|
||||||
|
|
||||||
dir.Result <- node
|
dir.Result <- node
|
||||||
|
arch.p.Report(Stat{Dirs: 1})
|
||||||
case <-done:
|
case <-done:
|
||||||
// pipeline was cancelled
|
// pipeline was cancelled
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user