Hi fadden, Is it sure a case of Symbolic Links?
Anyway, I have found that code: Path file = ...; boolean isSymbolicLink = Attributes.readBasicFileAttributes(file, LinkOption.NOFOLLOW_LINKS).isSymbolicLink(); Which, unfortunately, works only on Java 7 (SE). I couldn't find any way of checking this using Android's Java. Any help would be much appreciated. Cheers On Apr 7, 3:30 am, fadden <[email protected]> wrote: > On Apr 6, 4:21 pm, jfbaro <[email protected]> wrote: > > > If you use any file browser/manager and starting going into /sys/ > > devices/w1 bus master/subsystem/devices/w1 bus master/subsystem it > > will go inner forever, repeating that pattern [b]devices/w1 bus master/ > > subsystem/[/b] forever. > > > So when I run a recursive search it keeps going deeper and deeper and > > seems never to finish. > > Probably a symlink back to a higher level. > > The file manager should be using lstat() before descending into a > directory. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.

