Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug with directory creation #3

Open
vankov1 opened this issue Jul 9, 2014 · 2 comments
Open

Possible bug with directory creation #3

vankov1 opened this issue Jul 9, 2014 · 2 comments

Comments

@vankov1
Copy link

vankov1 commented Jul 9, 2014

I think there is a little problem with the check in load_file method which has to create directories. With Cordova 3.5 and Android Kit Kat it gives different errors (9 and 1000 instead of 3) when the folder does not exist. If you change the check everything works fine.

// if target folder does not exist, create it
if(error.code == 3){
Log('FileManager','msg')('folder does not exist, creating it');
@traildex
Copy link

@vankov1 should it be
if(error.code == 3 || error.code == 9 || error.code == 1000){
or
if(error.code == 9 || error.code == 1000){

@torrmal
Copy link
Owner

torrmal commented Nov 30, 2014

cool, you can send a pull request and I will merge it right away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants