From 05dc0aac1b073d4cc8801bd25f441cfd77f8c0b3 Mon Sep 17 00:00:00 2001 From: satori Date: Mon, 16 Dec 2024 10:16:49 +0800 Subject: [PATCH] DEBUG --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 21ef0a4..a45e61d 100644 --- a/main.js +++ b/main.js @@ -91,7 +91,7 @@ const 存档 = async (message = '正在存档...') => { export function main() { console.log(当前日期, '启动时加载全部数据...') - fs.readdirSync(dirPath).filter(file => file.endsWith('.json')).map(name => { + fs.readdirSync('./data').filter(file => file.endsWith('.json')).map(name => { console.log('filename:', name) const file = fs.readFileSync(`./data/${name}`, 'utf8') if (file) {