From cb2d131364e3b1bd287b6b52ce47c5bbd127c889 Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Thu, 15 Nov 2007 23:26:29 +0000 Subject: [PATCH] Fixed so packages folder is not created unless it is needed/used. --- lib/Doctrine/Import/Builder.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Doctrine/Import/Builder.php b/lib/Doctrine/Import/Builder.php index 0ff6ede01..d0e976ff2 100644 --- a/lib/Doctrine/Import/Builder.php +++ b/lib/Doctrine/Import/Builder.php @@ -129,8 +129,6 @@ class Doctrine_Import_Builder */ public function setTargetPath($path) { - Doctrine::makeDirectories($path); - if ( ! $this->_packagesPath) { $this->setPackagesPath($path . DIRECTORY_SEPARATOR . 'packages'); } @@ -157,8 +155,6 @@ class Doctrine_Import_Builder */ public function setPackagesPath($packagesPath) { - Doctrine::makeDirectories($packagesPath); - $this->_packagesPath = $packagesPath; } @@ -799,7 +795,7 @@ END; $writePath = $this->_path . DIRECTORY_SEPARATOR . $this->_baseClassesDirectory; } } - + if (isset($writePath)) { Doctrine::makeDirectories($writePath);