Browse Source

options to control filer.export verbosity

pull/778/head
Chris Lu 6 years ago
parent
commit
c9b3ef58de
  1. 5
      weed/command/filer_export.go

5
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,7 +171,8 @@ func printout(level int, entry *filer2.Entry) error {
}
}
print(entry.FullPath.Name())
for _, chunk:=range entry.Chunks{
if *verboseFilerExport{
for _, chunk := range entry.Chunks {
print("[")
print(chunk.FileId)
print(",")
@ -179,6 +181,7 @@ func printout(level int, entry *filer2.Entry) error {
print(chunk.Size)
print(")")
}
}
println()
return nil
}
Loading…
Cancel
Save