node utils
摘要:// 引入依赖 const fs = require('fs'); // 删除指定路径下的所有文件 /** * 删除指定路径下的所有文件,但排除某些特定文件或文件夹。 * @param {string} path - 需要清空文件的路径。 */ function emptyDir(path) { c
阅读全文
posted @ 2021-12-29 22:22
posted @ 2021-12-29 22:22
posted @ 2021-12-29 22:22
posted @ 2021-12-24 15:48
posted @ 2021-12-24 00:26