📅  最后修改于: 2022-03-11 15:03:50.127000             🧑  作者: Mango
just a simple script for javascript shell
const fs = require('fs');
function buildTree(startPath) {
fs.readdir(startPath, (err, entries) => {
console.log(entries);
});
}
buildTree('/home/jim/Desktop/theme');
for extra info visit below link
https://www.sitepoint.com/shell-scripts-javascript/