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
web: fix bulk exists check for files
Abdullah Atta02fdec74ce42
diff --git a/apps/web/src/interfaces/fs.ts b/apps/web/src/interfaces/fs.tsindex f83e25647..b1278894e 100644--- a/apps/web/src/interfaces/fs.ts+++ b/apps/web/src/interfaces/fs.ts@@ -576,9 +576,10 @@ async function exists(filename: string | FileHandle) {}async function bulkExists(filenames: string[]) {- return Array.from(- new Set(filenames).difference(new Set(await streamablefs.list())).values()+ const files = (await streamablefs.list()).map((c) =>+ c.replace(/-chunk-\d+/, ""));+ return Array.from(new Set(filenames).difference(new Set(files)).values());}type FileMetadata = {