📅  最后修改于: 2022-03-11 15:04:13.634000             🧑  作者: Mango
const path = require('path');
const fs = require('fs');
fs.readdir(
path.resolve(__dirname, 'MyFolder'),
(err, files) => {
if (err) throw err;
for (let file of files) {
console.log(file);
}
}
);