"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
drive: add backend commands exportformats and importformats for debugging
Nick Craig-Woode95dff2fa196
diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex 2a4d0a64b..b352b9004 100644--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -3351,6 +3351,12 @@ attempted if possible.Use the -i flag to see what would be copied before copying.`,+}, {+ Name: "exportformats",+ Short: "Dump the export formats for debug purposes",+}, {+ Name: "importformats",+ Short: "Dump the import formats for debug purposes",}}// Command the backend to run a named command@@ -3465,6 +3471,10 @@ func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[str}}return nil, nil+ case "exportformats":+ return f.exportFormats(ctx), nil+ case "importformats":+ return f.importFormats(ctx), nildefault:return nil, fs.ErrorCommandNotFound}