Skip to content
Permalink
Browse files

Improve extract in debug mode to auto-create the folder.

  • Loading branch information...
dereuromark committed Jun 24, 2015
1 parent 1422d39 commit d84f99e5ac21041bde208dfb69f17079eaafb52d
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Shell/Task/ExtractTask.php
@@ -16,6 +16,7 @@
use Cake\Console\Shell;
use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Filesystem\File;
use Cake\Filesystem\Folder;
@@ -704,6 +705,9 @@ protected function _isExtractingApp()
*/
protected function _isPathUsable($path)
{
if (Configure::read('debug') && !is_dir($path)) {
mkdir($path, 0770, true);
}
return is_dir($path) && is_writable($path);
}
}

0 comments on commit d84f99e

Please sign in to comment.
You can’t perform that action at this time.