Open chrisekelley opened 2 years ago
Relevant code:
[10:08 AM] Kelley, Chris
if (confirmCheck) {
const process = this.processMonitorService.start('pruneFiles', Object(src_app_shared_translation_marker__WEBPACK_IMPORTED_MODULE_1__["_TRANSLATE"])('Pruning files...'));
yield this.pruneFilesInPath(window['cordova'].file.externalDataDirectory);
yield this.pruneFilesInPath(window['cordova'].file.externalRootDirectory + 'Download/restore/');
yield this.pruneFilesInPath(window['cordova'].file.externalRootDirectory + 'Documents/Tangerine/backups/');
yield this.pruneFilesInPath(window['cordova'].file.externalRootDirectory + 'Documents/Tangerine/restore/');
this.processMonitorService.stop(process.id);
}
Proposed sol'n: Surround each pruneFiles in a try/catch.
Current version: v3.20.1 Upgraded from: Issue on tablet
Expected behavior
"Pruning files" error message dismissed upon completion
Actual behavior and Steps to reproduce the behavior
If tit is a new install and there has not yet been a backup or restore, the relevant dirs are not avail for deletion and an error occurs.