Skip to content

Commit

Permalink
Merge pull request #65 from explooosion/develop
Browse files Browse the repository at this point in the history
refactor: tool.js check exist folder
  • Loading branch information
explooosion authored Jul 6, 2024
2 parents 00eb643 + b9dbd19 commit dd7a896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pre-work/tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const LOG_DIR = `${LOG_BASE_DIR}/${CURRENT_DATE}`;
const SUCCESS_LOG_FILE_NAME = `${LOG_DIR}/success.log`;
const ERROR_LOG_FILE_NAME = `${LOG_DIR}/error.log`;

// 確保 log 目錄存在
// 刪除當前日期目錄及其內容(如果存在),然後重新創建目錄
fs.removeSync(LOG_DIR);
fs.ensureDirSync(LOG_DIR);

// 下載 JSON 資源
Expand Down

0 comments on commit dd7a896

Please sign in to comment.