[BUGFIX] missing out folder creation

This commit is contained in:
Walter Dal Mut 2013-11-18 08:03:46 +01:00
parent c4351d8218
commit 659ee4d90b
3 changed files with 62 additions and 54 deletions

4
.gitignore vendored
View file

@ -2,4 +2,8 @@
.buildpath
.settings
vendor
*.phar
*.deb
src/*.tgz

View file

@ -21,7 +21,9 @@
"php": ">=5.3.3"
},
"autoload": {
"psr-0": ["src/"]
"psr-0": {
"wdm": "src/"
}
},
"repositories": [
{

View file

@ -114,13 +114,15 @@ class Packager
if (file_exists($this->_outputPath)) {
$iterator = new \DirectoryIterator($this->_outputPath);
foreach ($iterator as $path) {
if ($path != '.' || $path != '..'); {
if ($path != '.' || $path != '..') {
echo "OUTPUT DIRECTORY MUST BE EMPTY! Something exists, exit immediately!" . PHP_EOL;
exit();
}
}
}
mkdir($this->_outputPath, 0777);
foreach ($this->_mountPoints as $path => $dest) {
$this->_pathToPath($path, $this->_outputPath . DIRECTORY_SEPARATOR . $dest);
}