ソースを参照

Merge pull request #153 from webfactory/fix_target_dir_exists

Make sure the target-dir exists
Jordi Boggiano 13 年 前
コミット
0767cdca14
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/Composer/Downloader/DownloadManager.php

+ 3 - 0
src/Composer/Downloader/DownloadManager.php

@@ -134,6 +134,9 @@ class DownloadManager
             );
         }
 
+        $fs = new Util\Filesystem();
+        $fs->ensureDirectoryExists($targetDir);
+        
         $downloader = $this->getDownloaderForInstalledPackage($package);
         $downloader->download($package, $targetDir);
     }