The path which you want to inspect
Optional
options: ScanOptionsAn object used as options of the function
Optional
onFile: Callback<Node>A function called when a file is added. It has the tree object and its stat as parameters. The object can me changed and extended here, on typescript there the function uses indeed generics.
Optional
onDir: Callback<Node>A function called when a dir is added. It has the tree object and its stat as parameters. The object can me changed and extended here, on typescript there the function uses indeed generics.
The directory tree as a Dree object
Generated using TypeDoc
Returns the Directory Tree of a given path. This function in synchronous.