The first just requires the starting directory and a FileVisitor object i.e.:
In a real application I would like to use the following
This works. However it appears to be only FOLLOW_LINKS as a possible choice of a FileVisitOption.
Therefore I wonder why in the second walkFileTree method, the second parameter is a set of FileVisitOption... I mean there is only one possible choice which is FOLLOW_LINKS. Am I missing something?
Thanks in advance.
OCAJP 7, OCPJP 7
Stephan van Hulst
posted 3 years ago
In the future, more values may be added.
The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.