Changes between Initial Version and Version 1 of Ticket #641, comment 18
- Timestamp:
- 2012-05-15T17:14:10Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified Ticket #641, comment 18
initial v1 1 Per [https://tahoe-lafs.org/pipermail/tahoe-dev/2012-April/007233.html this mailing list discussion], a better way to detect cycles than counting how many symlinks you've traversed is to examine the dev and inode of each thing and raise an exception about recursive symlinks if you encounter the same one a second time. Here's some code I wrote for a different tool that uses dev and inode to identify files: 1 Per [https://tahoe-lafs.org/pipermail/tahoe-dev/2012-April/007233.html this mailing list discussion], a better way to detect cycles than counting how many symlinks you've traversed is to examine the dev and inode of each thing and raise an exception about recursive symlinks if you encounter the same one a second time. That way we can handle an arbitrarily deep nest of symlinks. 2 3 Here's some code I wrote for a different tool that uses dev and inode to identify files: 2 4 3 5 https://tahoe-lafs.org/trac/dupfilefind/browser/trunk/dupfilefind/dff.py?annotate=blame