Sfoglia il codice sorgente

Make sure the directory exists and will not block installation later when downloading

Jordi Boggiano 5 anni fa
parent
commit
9ee345ed29
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/Composer/Downloader/FileDownloader.php

+ 1 - 0
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;