mirror of
https://github.com/octoleo/restic.git
synced 2025-01-13 18:43:04 +00:00
restore: progress bar total on windows
This commit is contained in:
parent
4a9536b829
commit
44e3610b32
@ -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 New Issue
Block a user