mirror of
https://github.com/octoleo/restic.git
synced 2024-12-26 04:17:29 +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{
|
||||
enterDir: func(_ *restic.Node, target, location string) error {
|
||||
debug.Log("first pass, enterDir: mkdir %q, leaveDir should restore metadata", location)
|
||||
if location != "/" {
|
||||
if location != string(filepath.Separator) {
|
||||
res.opts.Progress.AddFile(0)
|
||||
}
|
||||
return res.ensureDir(target)
|
||||
|
Loading…
Reference in New Issue
Block a user