There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(electron): ignore .DS_Store on MacOS (#2203)
Fangdun Tsai5a881ec223ed
diff --git a/apps/electron/layers/main/src/data/workspace.ts b/apps/electron/layers/main/src/data/workspace.tsindex 75a094db88..5fa2b17361 100644--- a/apps/electron/layers/main/src/data/workspace.ts+++ b/apps/electron/layers/main/src/data/workspace.ts@@ -8,7 +8,11 @@ import type { AppContext } from '../context';export async function listWorkspaces(context: AppContext) {const basePath = path.join(context.appDataPath, 'workspaces');try {- return fs.readdir(basePath);+ return fs+ .readdir(basePath, {+ withFileTypes: true,+ })+ .then(dirs => dirs.filter(dir => dir.isDirectory()).map(dir => dir.name));} catch (error) {logger.error('listWorkspaces', error);return [];