add ‘recursive’ option to prevent search descending into subdirectories

would rather you just pull this function out like:
```js
fs.stat(file, processFile)
```
and then just define `processFile` beneath