diff --git a/Classes/Driver/AmazonS3Driver.php b/Classes/Driver/AmazonS3Driver.php index 8a2533b1..1f0d80af 100644 --- a/Classes/Driver/AmazonS3Driver.php +++ b/Classes/Driver/AmazonS3Driver.php @@ -492,7 +492,7 @@ public function deleteFolder($folderIdentifier, $deleteRecursively = false) if ($this->isDir($object['Key'])) { $subFolder = $this->getFolder($object['Key']); if ($subFolder) { - $this->deleteFolder($subFolder, $deleteRecursively); + $this->deleteFolder($subFolder->getIdentifier(), $deleteRecursively); } } else { unlink($this->getStreamWrapperPath($object['Key']));