lib/list-folder.ts
object
listFolder(srcPath, exclude, include, mainPath, tree) → Recursively traverse folders and return exluded files, a file list and a file tree.
Kind: global function
Returns: object
- paths array, tree, excluded array
Param | Type | Description |
---|---|---|
srcPath | string | path to source dir |
exclude | array | exluded file patter list |
include | array | included file patter list |
mainPath | string | path to hold source dir |
tree | object | tree array |