From 97b963ef1d89828bbdcc77c21779cabe3a8e8c87 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 21 Feb 2015 14:05:02 +0100 Subject: [PATCH] Report files and dirs --- archiver.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archiver.go b/archiver.go index f4d4977f3..023b674d2 100644 --- a/archiver.go +++ b/archiver.go @@ -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