From 7206fdc6e93c083856fc75f6d4143fdf6ddd2ca5 Mon Sep 17 00:00:00 2001 From: Gregory Silva Date: Thu, 21 May 2026 20:09:27 -0300 Subject: [PATCH] fix: handle EEXIST in ensureBacklogStructure for Windows OneDrive (Bun bug) --- src/file-system/operations.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/file-system/operations.ts b/src/file-system/operations.ts index 160d075de..0c698f6b6 100644 --- a/src/file-system/operations.ts +++ b/src/file-system/operations.ts @@ -211,8 +211,13 @@ export class FileSystem { join(backlogDir, DEFAULT_DIRECTORIES.DECISIONS), ]; + // for (const dir of directories) { + // await mkdir(dir, { recursive: true }); + // } for (const dir of directories) { - await mkdir(dir, { recursive: true }); + await mkdir(dir, { recursive: true }).catch((err: NodeJS.ErrnoException) => { + if (err.code !== "EEXIST") throw err; + }); } }