fix: auto create temp dir

This commit is contained in:
linyuchen 2024-03-21 13:02:15 +08:00
parent 4f9345e4e5
commit ebca6a07c5

View File

@ -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";