remove unnecessary functions
This commit is contained in:
parent
959fb89553
commit
ee593a0610
@ -12,28 +12,6 @@ const warnSymbol = "⚠️";
|
||||
const headExplode = "🤯";
|
||||
const rightArrow = "➡️";
|
||||
|
||||
function recFindByExt(base, ext, files, result) {
|
||||
files = files || fs.readdirSync(base);
|
||||
result = result || [];
|
||||
|
||||
files.forEach(function(file) {
|
||||
var newbase = path.join(base, file);
|
||||
if (fs.statSync(newbase).isDirectory()) {
|
||||
result = recFindByExt(
|
||||
newbase,
|
||||
ext,
|
||||
fs.readdirSync(newbase),
|
||||
result
|
||||
);
|
||||
} else {
|
||||
if (file.substr(-1 * (ext.length + 1)) == "." + ext) {
|
||||
result.push(newbase);
|
||||
}
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
function pprint(obj) {
|
||||
console.log("%o", obj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user