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

@ -34,7 +34,7 @@ delete all files bigger than 100MBytes.
Run: func(command *cobra.Command, args []string) {
cmd.CheckArgs(1, 1, command, args)
fsrc := cmd.NewFsSrc(args)
cmd.Run(true, command, func() error {
cmd.Run(true, false, command, func() error {
return fs.Delete(fsrc)
})
},