mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 03:17:28 +08:00
dbhashsum: deprecate: use rclone hashsum DropboxHash instead
This commit is contained in:
parent
f5455d865b
commit
e051a34fc1
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user