David Hogg created CB-6519:
------------------------------
Summary: Recursive directory creation fails when spaces in
directory names
Key: CB-6519
URL: https://issues.apache.org/jira/browse/CB-6519
Project: Apache Cordova
Issue Type: Bug
Components: iOS, Plugin File
Affects Versions: 3.4.0
Environment: iOS (have not tested on other platforms)
Reporter: David Hogg
Priority: Minor
Previous to the File Plugin release (Feb 2014), it was possible to recursively
create directories by calliing dirEntry.getDirectory using the dirEntry
returned from the getDirectory call.
Since the Feb release (including the latest File Plugin (v 1.1.0) this will
fail if directory names have spaces in the name (but only if recursive. Eg.
Can create 'Some Directory' fine in root, but not 'Some Directory/Another
Directory').
Problem can be reproduced by using the filer.js library
[https://github.com/ebidel/filer.js] and calling mkdir. Here is another
library [https://github.com/torrmal/cordova-simplefilemanagement] that does not
suffer from this problem as it always returns to the root dirEntry during
folder creation.
As an aside, it would be awesome to have a more convenient file system API in
cordova that directly offers support for recursive folders, particularly since
it looks like the html5 file system API itself
([http://www.html5rocks.com/en/tutorials/file/filesystem]) appears to be dead
or dying?
--
This message was sent by Atlassian JIRA
(v6.2#6252)