cordova-simplefilemanagement
cordova-simplefilemanagement copied to clipboard
Possible bug with directory creation
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 should it be
if(error.code == 3 || error.code == 9 || error.code == 1000){
or
if(error.code == 9 || error.code == 1000){
cool, you can send a pull request and I will merge it right away.