mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-30 15:19:32 +08:00
修改 - fs.existsSync(SERVER_PATH_SCH)
This commit is contained in:
parent
9014fbd996
commit
0afc846088
2
app.js
2
app.js
@ -194,6 +194,8 @@ process.on("uncaughtException", function (err) {
|
||||
if (!fs.existsSync(USERS_PATH)) fs.mkdirSync(USERS_PATH);
|
||||
if (!fs.existsSync(SERVER_PATH)) {
|
||||
fs.mkdir(SERVER_PATH, () => fs.mkdirSync(SERVER_PATH_CORE));
|
||||
}
|
||||
if (!fs.existsSync(SERVER_PATH_SCH)) {
|
||||
fs.mkdirSync(SERVER_PATH_SCH);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user