From 2711574229d47605ae9eab4f582dc15bf16dd8e2 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 11 Oct 2021 13:45:02 +0200 Subject: [PATCH] Delete S3 versions in rmdir When deleting a complete folder in a bucket that has versioning enabled, also make sure to delete all associated versions and delete markers Signed-off-by: Vincent Petry --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 220822f93961b..fcefa847a3311 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -311,7 +311,7 @@ private function batchDelete($path = null) { $connection->deleteObjects([ 'Bucket' => $this->bucket, 'Delete' => [ - 'Objects' => $objects['Contents'] + 'Objects' => $objects['Contents'], ] ]); $this->testTimeout();