📅  最后修改于: 2022-03-11 15:01:52.661000             🧑  作者: Mango
const getAllFromDir = source =>
fs.readdirSync(source).map(name => path.join(source, name));
console.log(getDirectories("C:/"));