From ebca6a07c5b4ab000172cd558288be35a92a6c88 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Thu, 21 Mar 2024 13:02:15 +0800 Subject: [PATCH] fix: auto create temp dir --- src/common/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils/index.ts b/src/common/utils/index.ts index 04e2937..5f3812f 100644 --- a/src/common/utils/index.ts +++ b/src/common/utils/index.ts @@ -11,7 +11,7 @@ export const DATA_DIR = global.LiteLoader.plugins["LLOneBot"].path.data; export const TEMP_DIR = path.join(DATA_DIR, "temp"); export const PLUGIN_DIR = global.LiteLoader.plugins["LLOneBot"].path.plugin; if (!fs.existsSync(TEMP_DIR)) { - fs.mkdirSync(TEMP_DIR); + fs.mkdirSync(TEMP_DIR, {recursive: true}); } export {getVideoInfo} from "./video"; export {checkFfmpeg} from "./video"; \ No newline at end of file