dbhashsum: deprecate: use rclone hashsum DropboxHash instead

This commit is contained in:
Nick Craig-Wood 2020-04-23 11:05:36 +01:00
parent f5455d865b
commit e051a34fc1

View File

@ -6,6 +6,7 @@ import (
"github.com/rclone/rclone/backend/dropbox"
"github.com/rclone/rclone/cmd"
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/operations"
"github.com/spf13/cobra"
)
@ -26,6 +27,7 @@ The output is in the same format as md5sum and sha1sum.
Run: func(command *cobra.Command, args []string) {
cmd.CheckArgs(1, 1, command, args)
fsrc := cmd.NewFsSrc(args)
fs.Logf(nil, `"rclone dbhashsum" is deprecated, use "rclone hashsum %v %s" instead`, dropbox.DbHashType, args[0])
cmd.Run(false, false, command, func() error {
return operations.HashLister(context.Background(), dropbox.DbHashType, fsrc, os.Stdout)
})