mirror of
https://github.com/restic/restic.git
synced 2025-12-23 07:36:56 +00:00
Refactor formatNode
This commit is contained in:
@@ -16,9 +16,11 @@ func formatNode(path string, n *restic.Node, long bool, human bool) string {
|
|||||||
var mode os.FileMode
|
var mode os.FileMode
|
||||||
var target string
|
var target string
|
||||||
|
|
||||||
size := fmt.Sprintf("%6d", n.Size)
|
var size string
|
||||||
if human {
|
if human {
|
||||||
size = ui.FormatBytes(n.Size)
|
size = ui.FormatBytes(n.Size)
|
||||||
|
} else {
|
||||||
|
size = fmt.Sprintf("%6d", n.Size)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch n.Type {
|
switch n.Type {
|
||||||
|
|||||||
Reference in New Issue
Block a user