Create a file ionic native


#1

I am trying to create a file using ionic native on android platform.
I tryied several examples on the web but nothing work
this.file.checkDir(this.file.dataDirectory, 'mydir').then(_ => alert('Directory exists')).catch(err => alert('Directory doesnt exist'));

how i can turn this work
thank you at advance