Commit cb2d1313 authored by Jonathan.Wage's avatar Jonathan.Wage

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

parent 85ef90fd
...@@ -129,8 +129,6 @@ class Doctrine_Import_Builder ...@@ -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 ...@@ -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; ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment