1
0
Fork 0

Merge pull request #153 from webfactory/fix_target_dir_exists

Make sure the target-dir exists
pull/154/merge
Jordi Boggiano 2011-12-10 04:43:10 -08:00
commit 0767cdca14
1 changed files with 3 additions and 0 deletions

View File

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