📜  从 dir 节点获取所有内容 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:52.661000             🧑  作者: Mango

代码示例2
const getAllFromDir = source =>
      fs.readdirSync(source).map(name => path.join(source, name));
      console.log(getDirectories("C:/"));