Hi, I have to do something with the ionic native class File. It works generally, so for example I get the dataDirectory correctly but if I want to use the method checkDir() I get an error: "code":1,"message":"NOT_FOUND_ERR"
The code:
this.file.checkDir(this.file.dataDirectory, "Exercises").then((resolve) => {
alert("result: " + resolve)
if (!resolve) {
//do something
}
}, (error) => {
alert("error: " + JSON.stringify(error));
})
And one more question: Do I have to use .then always if I have a promise? Even at methods like createDir?
I would appreciate any answer!