You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
376 B

// 清空 lanhu-pages 目录(票 01 重拉前的清理,仅删除 .md 产物)
import fs from 'node:fs';
import path from 'node:path';
const DIR = 'e:/code/crm-backend-matt/.scratch/opportunity-bugfix/lanhu-pages';
let n = 0;
for (const f of fs.readdirSync(DIR)) {
if (f.endsWith('.md')) { fs.unlinkSync(path.join(DIR, f)); n++; }
}
console.log('deleted md files:', n);