From debb2244bee797cb7dbe92178382b0fee2e1cb94 Mon Sep 17 00:00:00 2001 From: Vincent Palmer Date: Thu, 16 Dec 2021 18:48:58 -0500 Subject: [PATCH] format theriumPath to correctly work with windows machines (#155) --- server/src/utils/appPaths.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/utils/appPaths.ts b/server/src/utils/appPaths.ts index 72d3042f..d3a1d1f5 100644 --- a/server/src/utils/appPaths.ts +++ b/server/src/utils/appPaths.ts @@ -24,6 +24,9 @@ if (process.env.THORIUM_PATH) { } } +/* format path to function with windows machines */ +thoriumPath = thoriumPath.replaceAll('\\', '/'); + fs.mkdirSync(thoriumPath, {recursive: true}); export const databaseName = -- 2.54.0