I am trying to work with the ngCordova File plugin as documented here: http://ngcordova.com/docs/plugins/file/, but am getting strange behaviour.
I am trying to create a folder if it does not already exist. I am testing for its existence using:
Now this returns
NOT_FOUND_ERR so i try to create the folder subsequently by calling:
$cordovaFile.createDir(cordova.file.dataDirectory, 'inbound', false);
But this then returns
Why would checkDir tell me it does not exist, but then createDir tell me it DOES exist?
NOTE: This is using an Android device.