I have tried to use follow with preprocess. They don't work together.
I looked through the source code for File::Find. If follow is true, the code calls _find_dir_symlink. If follow is false, the code calls _find_dir. Only _find_dir ever calls the preprocess function.
Why doesn't _find_dir_symlink call it? There are no comments in the code or documentation to describe why this is so. There is only the statement from the doc stating that the two are not compatible.
I just noticed from the docs that postprocess is likewise a no-op when follow is turned on. Again, it is only called from _find_dir in the code.
In reply to Re^2: Why is preprocess a no-op when follow is true for File::Find?
by bounsy
in thread Why is preprocess a no-op when follow is true for File::Find?
by bounsy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |