The following works with cordova-plugin-file 1.3.3 ok but when i try with 2.1.0 it doesn't play so nice:-
$window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
function gotFS(fs) {
fs.root.getFile("/storage/emulated/0/Tulips.JPG", {create: false}, gotFileEntry, fail);
}
function gotFileEntry(fileEntry) {
console.log("gotFileEntry ok");
}
function fail(error) {
console.log("Failed: " + error.code);
}
The log I get is "Failed: 1". Did something change in 2.1.0 to break this?