From ac9afc4f2374a907da3e247bee843f7003ac133e Mon Sep 17 00:00:00 2001 From: Ludovic Bondon Date: Mon, 5 Oct 2026 16:49:23 +0400 Subject: [PATCH] azureblob: fix sync at the root failing on soft deleted containers - fixes #10044 When container soft delete is enabled, listing the containers at the root of the account returned the soft deleted ones too, because the listing asked for them with Include Deleted. rclone treated them as normal containers and then failed to list each of them with "directory not found". With at least one error, sync refused to delete anything on the destination ("not deleting files as there were IO errors") and ended with exit code 3. The listing now asks for live containers only, as it did before the port to the new SDK in a131da2c3. Nothing else in the backend used the deleted flag of the containers. --- backend/azureblob/azureblob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.go index 18aba2b00..144dc016c 100644 --- a/backend/azureblob/azureblob.go +++ b/backend/azureblob/azureblob.go @@ -1586,7 +1586,7 @@ type listContainerFn func(Name string, LastModified time.Time) error func (f *Fs) listContainersToFn(fn listContainerFn) error { max := int32(f.opt.ListChunkSize) pager := f.svc.NewListContainersPager(&service.ListContainersOptions{ - Include: service.ListContainersInclude{Metadata: true, Deleted: true}, + Include: service.ListContainersInclude{Metadata: true}, MaxResults: &max, }) ctx := context.Background()