|
path is the path to a folder.
level determines how deep the traversal goes:
If level = 1, file.filesInFolder doesn't go into any sub-folders.
If level = 2, it also counts the files in any sub-folders.
If level = infinity, it counts files at all levels, nesting into folders inside of sub-folders, and so forth.
|