title: Error creating nested directories on Android with cordova
body: <p>Problem is that I can not create a nested directory structure in Android with the following code under Cordova 3.0 on Android 4.3. (same code works in iOs)</p>
  
  <pre><code>var createDirectories = function(directoryArray, currentDir) {
      var parent = currentDir;
      var create = function(dirs) {
          if (dirs.length &gt; 0) {
              console.log('Creating dir: ' + parent.fullPath + '/' + dirs[0]);
              parent.getDirectory(dirs[0], {create: true, exclusive: false}, function(newDir){
                  console.log('Directory created: ' + newDir.fullPath);
                  parent = newDir;
                  dirs.splice(0, 1);
                  create(dirs);
              }, function(err) {
                  console.log('Error creating directory. ' + err.code);
                  console.log(err);
                  if (FileError.PATH_EXISTS_ERR === err.code) {
                      console.log('Directory already exists.');
                  }
              });
          } else {
              console.log('done');
          }
      };
      create(directoryArray);
  };
  </code></pre>
  
  <p>No matter what I have tried the call fails with the PATH_EXISTS_ERR. So if I pass ['images','test'] in it will create 'images', but fail on 'test'. As anyone run into this problem before?</p>
  
  <p>On iOs I get 2 'Directory created: ...' outputs as expected.</p>