diff --git a/weed/command/filer_export.go b/weed/command/filer_export.go index 8a709ed1f..14465d61b 100644 --- a/weed/command/filer_export.go +++ b/weed/command/filer_export.go @@ -37,6 +37,7 @@ var ( dir = cmdFilerExport.Flag.String("dir", "/", "only process files under this directory") dirListLimit = cmdFilerExport.Flag.Int("dirListLimit", 100000, "limit directory list size") dryRun = cmdFilerExport.Flag.Bool("dryRun", false, "not actually moving data") + verboseFilerExport = cmdFilerExport.Flag.Bool("v", false, "verbose entry details") ) type statistics struct { @@ -170,14 +171,16 @@ func printout(level int, entry *filer2.Entry) error { } } print(entry.FullPath.Name()) - for _, chunk:=range entry.Chunks{ - print("[") - print(chunk.FileId) - print(",") - print(chunk.Offset) - print(",") - print(chunk.Size) - print(")") + if *verboseFilerExport{ + for _, chunk := range entry.Chunks { + print("[") + print(chunk.FileId) + print(",") + print(chunk.Offset) + print(",") + print(chunk.Size) + print(")") + } } println() return nil