From 9ee345ed29985e4e5b1142bf4442910aab8fa684 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 2 Aug 2019 16:33:39 +0200 Subject: [PATCH] Make sure the directory exists and will not block installation later when downloading --- src/Composer/Downloader/FileDownloader.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Downloader/FileDownloader.php b/src/Composer/Downloader/FileDownloader.php index 6a08bd67d..ab72bbaed 100644 --- a/src/Composer/Downloader/FileDownloader.php +++ b/src/Composer/Downloader/FileDownloader.php @@ -101,6 +101,7 @@ class FileDownloader implements DownloaderInterface, ChangeReportInterface ); } + $this->filesystem->ensureDirectoryExists($path); $fileName = $this->getFileName($package, $path); $io = $this->io;