1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

Fixed so packages folder is not created unless it is needed/used.

This commit is contained in:
Jonathan.Wage 2007-11-15 23:26:29 +00:00
parent 85ef90fd02
commit cb2d131364

View file

@ -129,8 +129,6 @@ class Doctrine_Import_Builder
*/ */
public function setTargetPath($path) public function setTargetPath($path)
{ {
Doctrine::makeDirectories($path);
if ( ! $this->_packagesPath) { if ( ! $this->_packagesPath) {
$this->setPackagesPath($path . DIRECTORY_SEPARATOR . 'packages'); $this->setPackagesPath($path . DIRECTORY_SEPARATOR . 'packages');
} }
@ -157,8 +155,6 @@ class Doctrine_Import_Builder
*/ */
public function setPackagesPath($packagesPath) public function setPackagesPath($packagesPath)
{ {
Doctrine::makeDirectories($packagesPath);
$this->_packagesPath = $packagesPath; $this->_packagesPath = $packagesPath;
} }
@ -799,7 +795,7 @@ END;
$writePath = $this->_path . DIRECTORY_SEPARATOR . $this->_baseClassesDirectory; $writePath = $this->_path . DIRECTORY_SEPARATOR . $this->_baseClassesDirectory;
} }
} }
if (isset($writePath)) { if (isset($writePath)) {
Doctrine::makeDirectories($writePath); Doctrine::makeDirectories($writePath);