mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: auto create temp dir
This commit is contained in:
parent
4f9345e4e5
commit
ebca6a07c5
@ -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 TEMP_DIR = path.join(DATA_DIR, "temp");
|
||||||
export const PLUGIN_DIR = global.LiteLoader.plugins["LLOneBot"].path.plugin;
|
export const PLUGIN_DIR = global.LiteLoader.plugins["LLOneBot"].path.plugin;
|
||||||
if (!fs.existsSync(TEMP_DIR)) {
|
if (!fs.existsSync(TEMP_DIR)) {
|
||||||
fs.mkdirSync(TEMP_DIR);
|
fs.mkdirSync(TEMP_DIR, {recursive: true});
|
||||||
}
|
}
|
||||||
export {getVideoInfo} from "./video";
|
export {getVideoInfo} from "./video";
|
||||||
export {checkFfmpeg} from "./video";
|
export {checkFfmpeg} from "./video";
|
Loading…
x
Reference in New Issue
Block a user