onPreVisitDirectory
Overrides the corresponding function of the built FileVisitor with the provided function.
The provided callback is invoked for a directory before its contents are visited. Depending on the return value of the function:
FileVisitResult.CONTINUE - The contents of the directory are visited.
FileVisitResult.SKIP_SUBTREE - The contents of the directory are not visited, and the traversal continues to a sibling entry.
FileVisitResult.SKIP_SIBLINGS - The contents of the directory are not visited, and sibling entries are also not visited.
FileVisitResult.TERMINATE - The traversal terminates immediately, and no further entries are visited.
By default, FileVisitor.preVisitDirectory of the built file visitor returns FileVisitResult.CONTINUE.