Update src/Composer/Downloader/ArchiveDownloader.php

Fixed single-file archive post-extraction moving
main
Артём Курапов 12 years ago
parent 091b2e86db
commit 03db848b23

@ -48,8 +48,7 @@ abstract class ArchiveDownloader extends FileDownloader
$contentDir = $contentDir[0];
if(is_file($contentDir)){
rename($contentDir, $path . '/' . basename($fileName));
unlink($contentDir);
rename($contentDir, $path . '/' . basename($contentDir));
}
else{

Loading…
Cancel
Save