From f80d98553acd7f4e53a5bee0c2e85ff86218e3c6 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 29 Jan 2020 19:49:42 +0000 Subject: [PATCH] dbhashsum: stop it returning UNSUPPORTED on dropbox --- cmd/dbhashsum/dbhashsum.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/dbhashsum/dbhashsum.go b/cmd/dbhashsum/dbhashsum.go index f2d03d095..4da194117 100644 --- a/cmd/dbhashsum/dbhashsum.go +++ b/cmd/dbhashsum/dbhashsum.go @@ -4,9 +4,8 @@ import ( "context" "os" - "github.com/rclone/rclone/backend/dropbox/dbhash" + "github.com/rclone/rclone/backend/dropbox" "github.com/rclone/rclone/cmd" - "github.com/rclone/rclone/fs/hash" "github.com/rclone/rclone/fs/operations" "github.com/spf13/cobra" ) @@ -28,8 +27,7 @@ The output is in the same format as md5sum and sha1sum. cmd.CheckArgs(1, 1, command, args) fsrc := cmd.NewFsSrc(args) cmd.Run(false, false, command, func() error { - dbHashType := hash.RegisterHash("Dropbox", 64, dbhash.New) - return operations.HashLister(context.Background(), dbHashType, fsrc, os.Stdout) + return operations.HashLister(context.Background(), dropbox.DbHashType, fsrc, os.Stdout) }) }, }