forked from TrueCloudLab/restic
restore: progress bar total on windows
This commit is contained in:
parent
4a9536b829
commit
44e3610b32
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ func (res *Restorer) RestoreTo(ctx context.Context, dst string) error {
|
||||||
err = res.traverseTree(ctx, dst, *res.sn.Tree, treeVisitor{
|
err = res.traverseTree(ctx, dst, *res.sn.Tree, treeVisitor{
|
||||||
enterDir: func(_ *restic.Node, target, location string) error {
|
enterDir: func(_ *restic.Node, target, location string) error {
|
||||||
debug.Log("first pass, enterDir: mkdir %q, leaveDir should restore metadata", location)
|
debug.Log("first pass, enterDir: mkdir %q, leaveDir should restore metadata", location)
|
||||||
if location != "/" {
|
if location != string(filepath.Separator) {
|
||||||
res.opts.Progress.AddFile(0)
|
res.opts.Progress.AddFile(0)
|
||||||
}
|
}
|
||||||
return res.ensureDir(target)
|
return res.ensureDir(target)
|
||||||
|
|
Loading…
Reference in a new issue