After attempting to create a file and write in it, I'm encountering an issue where the file appears to be created but is not visible when navigating to the folder. Can someone please point out what might be going wrong?
Below is my code snippet:
this.file.createFile(this.file.dataDirectory, array.ERROR + '_error', true).then(() => {
console.log("Created the file!" + this.file.dataDirectory.toString());
}).catch(err => console.log(err));
let blob_toSend = new Blob([this.inputxml], { type: 'text/plain' });
this.file.writeFile(this.file.dataDirectory, array.ERROR + '_error', blob_toSend, {replace: true, append: false}).then(() => {
console.log("Wrote the file!");
}).catch(err => console.log(err));
I also attempted to name the file as "_error.txt" but encountered the same issue where it doesn't show up. Any guidance on resolving this problem would be greatly appreciated.