Only show transfer stats on commands which transfer stuff - fixes #849

This commit is contained in:
Nick Craig-Wood 2016-12-04 16:52:24 +00:00
parent 716ce49ce9
commit 2cbdb95ce5
22 changed files with 30 additions and 25 deletions

View file

@ -19,7 +19,7 @@ objects in it, use purge for that.`,
Run: func(command *cobra.Command, args []string) {
cmd.CheckArgs(1, 1, command, args)
fdst := cmd.NewFsDst(args)
cmd.Run(true, command, func() error {
cmd.Run(true, false, command, func() error {
return fs.Rmdir(fdst, "")
})
},