1
0
Fork 0

Fix missing directory separator in FileDownloader

pull/9426/head
Michaël Jacobs 2020-11-06 13:26:03 +01:00
parent 3f6899946b
commit c35a8e77c7
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface
$this->filesystem->emptyDirectory($path); $this->filesystem->emptyDirectory($path);
$this->filesystem->ensureDirectoryExists($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));
} }
/** /**