cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Hogg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6519) Recursive directory creation fails when spaces in directory names
Date Thu, 01 May 2014 21:40:19 GMT

    [ https://issues.apache.org/jira/browse/CB-6519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13987029#comment-13987029
] 

David Hogg commented on CB-6519:
--------------------------------

I'm assuming this fix is related (or possibly fixes):

https://issues.apache.org/jira/browse/CB-6583

> 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.w3.org/TR/file-system-api/],[http://www.html5rocks.com/en/tutorials/file/filesystem])
appears to be dead or dying?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message