mirror of
https://github.com/restic/restic.git
synced 2025-08-20 13:27:31 +00:00
restore: progress bar total on windows
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user