"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
operations: move interface assertion to tests to remove pflag dependency #3792
Nick Craig-Wood11f501bd44c6
diff --git a/fs/operations/dedupe.go b/fs/operations/dedupe.goindex 2851c219e..5fc1c0114 100644--- a/fs/operations/dedupe.go+++ b/fs/operations/dedupe.go@@ -15,7 +15,6 @@ import ("github.com/rclone/rclone/fs/config""github.com/rclone/rclone/fs/hash""github.com/rclone/rclone/fs/walk"- "github.com/spf13/pflag")// dedupeRename renames the objs slice to different names@@ -196,9 +195,6 @@ func (x *DeduplicateMode) Type() string {return "string"}-// Check it satisfies the interface-var _ pflag.Value = (*DeduplicateMode)(nil)-// dedupeFindDuplicateDirs scans f for duplicate directoriesfunc dedupeFindDuplicateDirs(ctx context.Context, f fs.Fs) ([][]fs.Directory, error) {dirs := map[string][]fs.Directory{}diff --git a/fs/operations/dedupe_test.go b/fs/operations/dedupe_test.goindex df7b9d2ac..38af8f990 100644--- a/fs/operations/dedupe_test.go+++ b/fs/operations/dedupe_test.go@@ -10,10 +10,14 @@ import ("github.com/rclone/rclone/fs/operations""github.com/rclone/rclone/fs/walk""github.com/rclone/rclone/fstest"+ "github.com/spf13/pflag""github.com/stretchr/testify/assert""github.com/stretchr/testify/require")+// Check flag satisfies the interface+var _ pflag.Value = (*operations.DeduplicateMode)(nil)+func skipIfCantDedupe(t *testing.T, f fs.Fs) {if !f.Features().DuplicateFiles {t.Skip("Can't test deduplicate - no duplicate files possible")