On Wed, 10 Sep 2008, Dominique Devienne <[EMAIL PROTECTED]> wrote: > On Wed, Sep 10, 2008 at 3:20 AM, Stefan Bodewig <[EMAIL PROTECTED]> wrote: > >> Similarly, maybe an internal flag in DS should be gettable to > >> possibly have client code remove duplicate entries if it wants to??? > > > > Not sure what you mean here. > > Have an new accessor on DirectoryScanner to find out how many symlink > hops it made, and whether is hit the limit, i.e. ignored some links.
The whether it hit the limit part is easy, but the way it is implemented DirectoryScanner won't (in general) even know it followed any symlinks before the limit is hit - this is all to avoid the cost of File.getCanonicalPath() unless we really need to call it. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]