add ‘recursive’ option to prevent search descending into subdirectories

same note here
```js
fs.readdir(file, processDirectory)

function processDirectory(err, files) {
...
}
```