chensenlai 10988628a0 语音房项目初始化 | 5 gadi atpakaļ | |
---|---|---|
.. | ||
LICENSE | 5 gadi atpakaļ | |
README.md | 5 gadi atpakaļ | |
index.js | 5 gadi atpakaļ | |
package.json | 5 gadi atpakaļ |
Read a directory recursively.
npm install fs-readdir-recursive
var read = require('fs-readdir-recursive')
read(__dirname) === [
'test/test.js',
'index.js',
'LICENSE',
'package.json',
'README.md'
]
root
is the directory you wish to scan. filter
is an optional filter for the files. By default, filter is:
function (x) {
return x[0] !== '.'
}
Which basically just ignores .
files.