Browse Source

Merge pull request #6881 from cakephp/master-extract

Improve extract in debug mode to auto-create the folder.
Mark Story 10 years ago
parent
commit
3b7b880a37
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Shell/Task/ExtractTask.php

+ 3 - 0
src/Shell/Task/ExtractTask.php

@@ -704,6 +704,9 @@ class ExtractTask extends Shell
      */
     protected function _isPathUsable($path)
     {
+        if (!is_dir($path)) {
+            mkdir($path, 0770, true);
+        }
         return is_dir($path) && is_writable($path);
     }
 }