Navigation Menu

Skip to content

Commit

Permalink
Fix directory creation issue in Windows
Browse files Browse the repository at this point in the history
Using '/' as the path separator when creating a plugins directory structure with mkdir fails when using Folder->create.   Changed value to OS specific constant DS.
  • Loading branch information
pjosephson committed Mar 30, 2014
1 parent 8a6c8af commit aefa22e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Console/Command/Task/PluginTask.php
Expand Up @@ -115,19 +115,19 @@ public function bake($plugin) {
if (strtolower($looksGood) === 'y') {
$Folder = new Folder($this->path . $plugin);
$directories = [
'Config/Schema',
'Model/Behavior',
'Model/Table',
'Model/Entity',
'Console/Command/Task',
'Controller/Component',
'Config' . DS . 'Schema',
'Model' . DS . 'Behavior',
'Model' . DS . 'Table',
'Model' . DS . 'Entity',
'Console' . DS . 'Command' . DS . 'Task',
'Controller' . DS . 'Component',
'Lib',
'View/Helper',
'View' . DS . 'Helper',
'Template',
'Test/TestCase/Controller/Component',
'Test/TestCase/View/Helper',
'Test/TestCase/Model/Behavior',
'Test/Fixture',
'Test' . DS . 'TestCase' . DS . 'Controller' . DS . 'Component',
'Test' . DS . 'TestCase' . DS . 'View' . DS . 'Helper',
'Test' . DS . 'TestCase' . DS . 'Model' . DS . 'Behavior',
'Test' . DS . 'Fixture',
'webroot'
];

Expand Down

0 comments on commit aefa22e

Please sign in to comment.