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
mobile: fix error when clearing cache on android
Ammar Ahmedd02125a93c8e
diff --git a/apps/mobile/app/common/filesystem/io.ts b/apps/mobile/app/common/filesystem/io.tsindex 24e6da046..9551a24ed 100644--- a/apps/mobile/app/common/filesystem/io.ts+++ b/apps/mobile/app/common/filesystem/io.ts@@ -137,6 +137,7 @@ export async function deleteFile(export async function clearFileStorage() {try {+ await createCacheDir();const files = await RNFetchBlob.fs.ls(cacheDir);const oldCache = await RNFetchBlob.fs.ls(cacheDirOld);@@ -221,6 +222,7 @@ export async function deleteCacheFileByName(name: string) {}export async function deleteDCacheFiles() {+ await createCacheDir();const files = await RNFetchBlob.fs.ls(cacheDir);for (const file of files) {if (file.includes("_dcache") || file.startsWith("NN_")) {