Skip to content

Commit b8ccfdf

Browse files
committed
Fix "Could not delete" Exception on removeDirectory
1 parent f6e6c2c commit b8ccfdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MagentoHackathon/Composer/Magento/Deploystrategy/DeploystrategyAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public static function rmdirRecursive($dir)
379379
{
380380
$fs = new \Composer\Util\Filesystem();
381381
if(is_dir($dir)){
382-
$result = $fs->removeDirectory($dir);
382+
$result = $fs->removeDirectory(rtrim($dir,'/'));
383383
}else{
384384
@unlink($dir);
385385
}

0 commit comments

Comments
 (0)