Browse Source

Добавил очистку временного каталога

Book Pauk 6 năm trước cách đây
mục cha
commit
5c550ed141
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      server/index.js

+ 1 - 0
server/index.js

@@ -13,6 +13,7 @@ const SqliteConnectionPool = require('./core/SqliteConnectionPool');
 async function init() {
     await fs.ensureDir(config.dataDir);
     await fs.ensureDir(config.tempDir);
+    await fs.emptyDir(config.tempDir);
 }
 
 async function main() {