Skip to content

Commit

Permalink
[BUGFIX] Fix deleting folders with subfolders (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske authored Aug 11, 2023
1 parent 6dfdb6e commit 677a82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Driver/AmazonS3Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']));
Expand Down

0 comments on commit 677a82e

Please sign in to comment.