Questions tagged «readdir»

30
node.js fs.readdir递归目录搜索
关于使用fs.readdir进行异步目录搜索的任何想法?我意识到我们可以引入递归并使用下一个目录来调用read目录函数以进行读取,但是我有点担心它不会异步... 有任何想法吗?我看过很棒的node-walk,但是不像readdir那样只给我数组中的文件。虽然 寻找像...的输出 ['file1.txt', 'file2.txt', 'dir/file3.txt']
267 node.js  readdir 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.