修改 - fs.existsSync(SERVER_PATH_SCH)

This commit is contained in:
suwings 2018-06-03 09:18:06 +08:00
parent 9014fbd996
commit 0afc846088

2
app.js
View File

@ -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);
}