I am trying to create a directory on the data directory of my Android application. However, there’s no directory being created. I have followed the documentation on the Files plugin and modified the code a little bit for testing.
this.file.checkDir(this.file.externalDataDirectory, 'testDir')
.then(_ => alert('Directory exists: '+_+". File path: "+this.file.externalDataDirectory))
.catch((err) => {
alert("No directory. Created \"testDir\". File path: "+this.file.externalDataDirectory);
this.file.createDir(this.file.externalDataDirectory, 'testing', false);
});
What seems to be wrong? Thank you!