onPostVisitDirectory
Overrides the corresponding function of the built FileVisitor with the provided function.
The provided callback is invoked for a directory after its contents have been visited, or when the iteration of the directory's immediate children is completed prematurely due to an I/O exception or onVisitFile returning FileVisitResult.SKIP_SIBLINGS. Depending on the return value of the function:
FileVisitResult.TERMINATE - The traversal terminates immediately, and no further entries are visited.
Any other result - Traversal continues to a sibling entry. Returning FileVisitResult.SKIP_SIBLINGS or FileVisitResult.SKIP_SUBTREE has the same effect as FileVisitResult.CONTINUE.
Note that the callback is not invoked for directories whose contents were not visited.
By default, if the directory iteration completes without an I/O exception, FileVisitor.postVisitDirectory of the built file visitor returns FileVisitResult.CONTINUE; otherwise, it re-throws the I/O exception that caused the iteration to complete prematurely.