When recursively descending a directory tree, how does...
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michael_Ashley
Posted On:   Wednesday, October 18, 2000 01:30 AM

When recursively descending a directory tree, how does one avoid
an infinite loop in the case that a directory entry is actually a symbolic link to a directory higher up in the tree? I'm using the
listFiles() method for File objects to list the files in a directory, and then isDirectory() to determine whether I need to recurse.

About | Sitemap | Contact