1
0
Fork 0

Update src/Composer/Downloader/ArchiveDownloader.php

Fixed single-file archive post-extraction moving
pull/977/head
Артём Курапов 2012-08-05 03:26:06 +03:00
parent 091b2e86db
commit 03db848b23
1 changed files with 1 additions and 2 deletions

View File

@ -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{