remove unnecessary functions

This commit is contained in:
Jeffrey Paul 2020-03-06 15:33:25 -08:00
parent 959fb89553
commit ee593a0610
1 changed files with 0 additions and 22 deletions

View File

@ -12,28 +12,6 @@ const warnSymbol = "⚠️";
const headExplode = "🤯"; const headExplode = "🤯";
const rightArrow = "➡️"; 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) { function pprint(obj) {
console.log("%o", obj); console.log("%o", obj);
} }