mirror of
https://github.com/restic/restic.git
synced 2025-12-12 12:12:17 +00:00
restorer: only show size in text output for files
This commit is contained in:
@@ -278,7 +278,7 @@ func (res *Restorer) restoreNodeTo(ctx context.Context, node *restic.Node, targe
|
||||
}
|
||||
}
|
||||
|
||||
res.opts.Progress.AddProgress(location, restoreui.ActionFileRestored, 0, 0)
|
||||
res.opts.Progress.AddProgress(location, restoreui.ActionOtherRestored, 0, 0)
|
||||
return res.restoreNodeMetadataTo(node, target, location)
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ func (res *Restorer) restoreHardlinkAt(node *restic.Node, target, path, location
|
||||
}
|
||||
}
|
||||
|
||||
res.opts.Progress.AddProgress(location, restoreui.ActionFileRestored, 0, 0)
|
||||
res.opts.Progress.AddProgress(location, restoreui.ActionOtherRestored, 0, 0)
|
||||
// TODO investigate if hardlinks have separate metadata on any supported system
|
||||
return res.restoreNodeMetadataTo(node, path, location)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user