A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix cache files not deleted
ammarahm-ed6ae34e759219
diff --git a/apps/mobile/src/utils/filesystem.js b/apps/mobile/src/utils/filesystem.jsindex eb922091a..8915be7b4 100644--- a/apps/mobile/src/utils/filesystem.js+++ b/apps/mobile/src/utils/filesystem.js@@ -270,9 +270,12 @@ async function clearFileStorage() {try {let files = await RNFetchBlob.fs.ls(cacheDir);for (let file of files) {- await RNFetchBlob.fs.unlink(file).catch(console.log);+ try {+ await RNFetchBlob.fs.unlink(cacheDir + `/${file}`);+ } catch (e) {+ console.log(e);+ }}- console.log(await RNFetchBlob.fs.ls(cacheDir));} catch (e) {console.log(e);}