meaning of PRUNE in FileVisitor.visitFile() ?
Alan Bateman
Alan.Bateman at Sun.COM
Fri Aug 8 06:59:00 PDT 2008
Rajendra Gutupalli wrote:
> Hi Alan,
>
> The spec for PRUNE says "Continue without visiting the entries in this
> directory. This result is only meaningful when returned from the
> preVisitDirectory method; otherwise this result type is the same as
> returning CONTINUE.". Does the PRUNE work in visitFile() method as
> "Continue without visiting 'remaining' entries in the directory". Now
> it treats PRUNE as CONTINUE in visitFile() method. Could you please
> tell me how can we continue from visiting the remaining entries of the
> directory?
Do you have any examples of where this would be used? It would be
straight-forward (actually trivial) to add a SKIP_SIBLINGS option if
needed.
-Alan.
More information about the nio-dev
mailing list