From ae0500e01eceaba36dd8122447d139d989fe42c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 23 Oct 2024 18:23:16 -0400 Subject: [PATCH] make config location recursively --- packages/obsidian-testing-framework/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 2fc1028..3fe8a38 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -53,10 +53,10 @@ function generateVaultConfig(vault: string) { if (process.platform == "win32") { configLocation = path.join(`${process.env.LOCALAPPDATA}`, "Obsidian"); } else { - try { - mkdirSync(process.env.XDG_CONFIG_HOME as string) - } catch(e) {} configLocation = path.join(`${process.env.XDG_CONFIG_HOME}`, "obsidian"); + try { + mkdirSync(configLocation, {recursive: true}) + } catch(e) {} } const obsidianConfigFile = path.join(configLocation, "obsidian.json"); const json: {