Skip to content

Commit

Permalink
Merge pull request #9426 from UrGuardian4ngel/bugfix/add-missing-dire…
Browse files Browse the repository at this point in the history
…ctory-separator-in-file-downloader

Fix missing directory separator in FileDownloader
  • Loading branch information
Seldaek committed Nov 6, 2020
2 parents 3f68999 + 611a9f5 commit 2a8cc06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Composer/Downloader/FileDownloader.php
Expand Up @@ -14,15 +14,13 @@

use Composer\Config;
use Composer\Cache;
use Composer\Factory;
use Composer\IO\IOInterface;
use Composer\IO\NullIO;
use Composer\Package\Comparer\Comparer;
use Composer\DependencyResolver\Operation\UpdateOperation;
use Composer\DependencyResolver\Operation\InstallOperation;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\Package\PackageInterface;
use Composer\Package\Version\VersionParser;
use Composer\Plugin\PluginEvents;
use Composer\Plugin\PostFileDownloadEvent;
use Composer\Plugin\PreFileDownloadEvent;
Expand Down Expand Up @@ -310,7 +308,7 @@ public function install(PackageInterface $package, $path, $output = true)

$this->filesystem->emptyDirectory($path);
$this->filesystem->ensureDirectoryExists($path);
$this->filesystem->rename($this->getFileName($package, $path), $path . pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME));
$this->filesystem->rename($this->getFileName($package, $path), $path . '/' . pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME));
}

/**
Expand Down

0 comments on commit 2a8cc06

Please sign in to comment.