pvserverhelper
Version:
This is an npm module design to perform common uses with pVelocity's pvserver
10 lines (9 loc) • 293 B
Markdown
### ``listFiles(dir, conditionFunc)``
Returns an array of all files under `dir`. `conditionFunc` can be provided to filter each specific file path.
- `dir` `<String>`
- `conditionFunc` `<Function>`
```js
pvh.listFiles('/Users', function(filePath) {
return filePath.endsWith('.json');
});
```