Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

union: mark ListP as not supported yet

Nick Craig-Woodd64a97f9733f
diff --git a/backend/union/union.go b/backend/union/union.go
index 9c976bac0..1cb0942da 100644
--- a/backend/union/union.go
+++ b/backend/union/union.go
@@ -1020,6 +1020,9 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
}
}
+ // Disable ListP always
+ features.ListP = nil
+
// show that we wrap other backends
features.Overlay = true
diff --git a/backend/union/union_test.go b/backend/union/union_test.go
index b9f4e24e2..48ab82052 100644
--- a/backend/union/union_test.go
+++ b/backend/union/union_test.go
@@ -12,7 +12,7 @@ import (
)
var (
- unimplementableFsMethods = []string{"UnWrap", "WrapFs", "SetWrapper", "UserInfo", "Disconnect", "PublicLink", "PutUnchecked", "MergeDirs", "OpenWriterAt", "OpenChunkWriter"}
+ unimplementableFsMethods = []string{"UnWrap", "WrapFs", "SetWrapper", "UserInfo", "Disconnect", "PublicLink", "PutUnchecked", "MergeDirs", "OpenWriterAt", "OpenChunkWriter", "ListP"}
unimplementableObjectMethods = []string{}
)