From 893b4e4c13d277d034857e0d9df1aed187e71bfa Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 3 Dec 2024 16:19:47 +0000 Subject: [PATCH] union: mark ListP as not supported yet --- backend/union/union.go | 3 +++ backend/union/union_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/union/union.go b/backend/union/union.go index f1922eda7..687a8496c 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{} )