Yes Thomas, try this program (just change SKIP_SIBLINGS in each method each time you run it):
In c:\temp (or any other directory you want) create a file structure like this for example:
And see the outcome.
From the java tutorials
preVisitDirectory – Invoked before a directory's entries are visited.
postVisitDirectory – Invoked after all the entries in a directory are visited. If any errors are encountered, the specific exception is passed to the method.
visitFile – Invoked on the file being visited.
visitFileFailed – Invoked when the file cannot be accessed.
SKIP_SIBLINGS – When preVisitDirectory returns this value, the specified directory is not visited, postVisitDirectory is not invoked, and no further unvisited siblings are visited. If returned from the postVisitDirectory method, no further siblings are visited. Essentially, nothing further happens in the specified directory.
Hope it helps.