Comment Comment by jonny_eh Why not just: require("fs").readdir(".").then(console.log) parent jonny_eh 8 years ago