cordova-simplefilemanagement icon indicating copy to clipboard operation
cordova-simplefilemanagement copied to clipboard

Possible bug with directory creation

Open vankov1 opened this issue 10 years ago • 2 comments

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');

vankov1 avatar Jul 09 '14 12:07 vankov1

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

traildex avatar Jul 19 '14 06:07 traildex

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

torrmal avatar Nov 30 '14 22:11 torrmal