"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
test: allow backends to return fs.ErrorCantListRoot to skip Root tests
Nick Craig-Wood116d0f37081a
diff --git a/fs/fs.go b/fs/fs.goindex 19a9b8e51..dc6d74861 100644--- a/fs/fs.go+++ b/fs/fs.go@@ -50,6 +50,7 @@ var (ErrorNotImplemented = errors.New("optional feature not implemented")ErrorCommandNotFound = errors.New("command not found")ErrorFileNameTooLong = errors.New("file name too long")+ ErrorCantListRoot = errors.New("can't list root"))// CheckClose is a utility function used to check the return fromdiff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.goindex 418745f4f..4db6f2907 100644--- a/fstest/fstests/fstests.go+++ b/fstest/fstests/fstests.go@@ -1915,6 +1915,9 @@ func Run(t *testing.T, opt *Opt) {}t.Logf("Opening root remote %q path %q from %q", configName, configLeaf, subRemoteName)rootRemote, err := fs.NewFs(context.Background(), configName)+ if errors.Is(err, fs.ErrorCantListRoot) {+ t.Skip("Can't list from root on this remote")+ }require.NoError(t, err)file1Root := file1