Methods
(static) exports.lookupFiles(filepath, extensions, recursive) → {Array:.<string:>}
Filenames are returned in traversal order by the OS/filesystem.
Make no assumption that the names will be sorted in any fashion.
Parameters:
Name | Type | Description |
---|---|---|
filepath |
string | Base path to start searching from. |
extensions |
Array:.<string:> | File extensions to look for. |
recursive |
boolean | Whether to recurse into subdirectories. |
Returns:
An array of paths.