seems to call wanted()
for all files in a directory before any subdirectories.
But the documentation doesn't mention that behavior.
Is this a documentation omission, or just an implementation quirk? In other words, is it guaranteed that files will always be visited before subdirectories?
For example, if I want to visit subdirs only if the parent dir contains a certain marker file, then I could set $File::Find::prune=1 when each subdir is visited unless the marker file has been seen. But only if the above "rule" is really a rule.