diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index 909d3f6b8e..3b0ae5bbe0 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -192,10 +192,10 @@ class AmazonS3 extends \OC\Files\Storage\Common { // Since there are no real directories on S3, we need // to delete all objects prefixed with the path. - $objects = $this->connection->listObjects([ + $objects = $this->connection->listObjects(array( 'Bucket' => $this->bucket, 'Prefix' => $path . '/' - ]); + )); try { $result = $this->connection->deleteObjects(array(