Skip to content

Commit

Permalink
Fix missing directory separator in FileDownloader
Browse files Browse the repository at this point in the history
  • Loading branch information
UrGuardian4ngel committed Nov 6, 2020
1 parent 3f68999 commit c35a8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Downloader/FileDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,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 c35a8e7

Please sign in to comment.