Skip to content

Commit

Permalink
Fix path for delete files
Browse files Browse the repository at this point in the history
  • Loading branch information
swisscat committed Oct 25, 2017
1 parent f4b7365 commit 912f2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/S3/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function renameRecursive($source, $target)
*/
public function unlinkRecursive($target)
{
$key = $target->getDynamicPath();
$key = ltrim($target->getDynamicPath(), '/');
if ($target->isDir) {
$this->s3->batchDelete($key);
} else {
Expand Down

0 comments on commit 912f2fa

Please sign in to comment.