Module treeutil
File tree related utilities.
Functions
tree (path[, modify[, foreach]]) | Create a tree of file names. |
Functions
- tree (path[, modify[, foreach]])
-
Create a tree of file names.
Recursively traverse a directory structure, generating a tree of all filenames.
Parameters:
- path string The path to build a tree from.
- modify table A table to add entries to. (optional)
- foreach function A function to call with each file path as its argument. (optional)
Returns:
-
table
A table of file paths