The directory to walk through.
A visitor delegate function to apply to all entries discovered.
A filter delegate that determines if an entry should be visited.
Whether to recursively walk through subdirectories.
How deep to search recursively. -1 indicates infinite recursion.
Walks through all the entries in a directory, and applies the given visitor function to all entries for which a given filter function returns true.