harunme3 opened a new issue #466:
URL: https://github.com/apache/cordova-plugin-file/issues/466
When do I install apk first time copyfile() method working as expected,but
while I installed my app second time it give me File not found error
this.file .checkDir(root, 'target')
.then(() => {
this.file
.copyFile(dirctorypath, filename, root+'target', '')
.then((t) => {
console.log('saved');
})
.catch((err) => {
console.log(err);
console.log('File not found');
});
})
.catch((err) => {
//create nd copy
this.file
.createDir(root, 'target', true)
.then(() => {
this.file
.copyFile(dirctorypath, url, root + `'target',` '')
.then((t) => {
console.log('saved');
})
.catch(() => {
console.log('not saved');
});
})
.catch(() => {
console.log(err);
});
});
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]