From 0ac9a42d95f485128668d2ab14c52be319581379 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 1e8be4131fe34..4e3eb4bf5f270 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -307,7 +307,7 @@ private function batchDelete($path = null) { $connection->deleteObjects([ 'Bucket' => $this->bucket, 'Delete' => [ - 'Objects' => $objects['Contents'] + 'Objects' => $objects['Contents'], ] ]); $this->testTimeout();