lib/list-folder.ts

listFolder(srcPath, exclude, include, mainPath, tree) → object

Recursively traverse folders and return exluded files, a file list and a file tree.

Kind: global function
Returns: object - paths array, tree, excluded array

ParamTypeDescription
srcPathstringpath to source dir
excludearrayexluded file patter list
includearrayincluded file patter list
mainPathstringpath to hold source dir
treeobjecttree array