commit
503c122d29
1 changed files with 4 additions and 2 deletions
|
@ -515,7 +515,7 @@ func (arch *Archiver) dirWorker(wg *sync.WaitGroup, p *Progress, done <-chan str
|
||||||
// if this is the top-level dir, only create a stub node
|
// if this is the top-level dir, only create a stub node
|
||||||
node = &Node{}
|
node = &Node{}
|
||||||
} else {
|
} else {
|
||||||
// else create note from path and fi
|
// else create node from path and fi
|
||||||
node, err = NodeFromFileInfo(dir.Path(), dir.Info())
|
node, err = NodeFromFileInfo(dir.Path(), dir.Info())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
node.Error = err.Error()
|
node.Error = err.Error()
|
||||||
|
@ -534,7 +534,9 @@ func (arch *Archiver) dirWorker(wg *sync.WaitGroup, p *Progress, done <-chan str
|
||||||
node.blobs = Blobs{blob}
|
node.blobs = Blobs{blob}
|
||||||
|
|
||||||
dir.Result() <- node
|
dir.Result() <- node
|
||||||
p.Report(Stat{Dirs: 1})
|
if dir.Path() != "" {
|
||||||
|
p.Report(Stat{Dirs: 1})
|
||||||
|
}
|
||||||
case <-done:
|
case <-done:
|
||||||
// pipeline was cancelled
|
// pipeline was cancelled
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue