"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Composer/Downloader/ArchiveDownloader.php" between
composer-2.1.2.tar.gz and composer-2.1.3.tar.gz

About: Composer helps you declare, manage, and install dependencies of PHP projects.

ArchiveDownloader.php  (composer-2.1.2):ArchiveDownloader.php  (composer-2.1.3)
skipping to change at line 142 skipping to change at line 142
$renameRecursively($file, $to . '/' . basename($file)); $renameRecursively($file, $to . '/' . basename($file));
} else { } else {
$filesystem->rename($file, $to . '/' . basename($file)); $filesystem->rename($file, $to . '/' . basename($file));
} }
} }
}; };
$renameAsOne = false; $renameAsOne = false;
if (!file_exists($path)) { if (!file_exists($path)) {
$renameAsOne = true; $renameAsOne = true;
} } elseif ($filesystem->isDirEmpty($path)) {
if ($filesystem->isDirEmpty($path)) {
try { try {
if ($filesystem->removeDirectoryPhp($path)) { if ($filesystem->removeDirectoryPhp($path)) {
$renameAsOne = true; $renameAsOne = true;
} }
} catch (\RuntimeException $e) { } catch (\RuntimeException $e) {
// ignore error, and simply do not renameAsOne // ignore error, and simply do not renameAsOne
} }
} }
$contentDir = $getFolderContent($temporaryDir); $contentDir = $getFolderContent($temporaryDir);
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)