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?
Related Questions
- 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?
- What happens if a test case cannot be completed e.g. due to an infinite loop or due to a crash of the target system?
- How do I recursively report the number of files in a directory tree?