in scripts/modify_filename.js [8:24]
function getAllNeedReplacePath(rootPath) {
const statsObj = fs.statSync(rootPath, (err, stats) => {
if (err) {
console.log('err', err);
return;
}
});
if (statsObj.isFile()) {
allNeedReplacePath.push(rootPath);
} else if (statsObj.isDirectory()) {
const files = fs.readdirSync(rootPath);
for (let filename of files) {
const curPath = `${rootPath}/${filename}`;
getAllNeedReplacePath(curPath);
}
}
}