From 44e3610b3279ffd984eac367c76d73f4d427575c Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 13 Jul 2024 00:02:17 +0200 Subject: [PATCH] restore: progress bar total on windows --- internal/restorer/restorer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/restorer/restorer.go b/internal/restorer/restorer.go index 9d5a5a114..3f41b79a6 100644 --- a/internal/restorer/restorer.go +++ b/internal/restorer/restorer.go @@ -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)