You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can implement this in index_files_by_size. It can get the follow_links value from find_duplicates_in_dirs, and pass it on to os.walk as the followlinks argument.
This needs unit testing. Test that follow_links=False doesn't follow links, and that follow_links=True does. How do we do this portably, e.g. what to do on systems that don't support symlinks?
I suppose we could detect if the system supports symlinks somehow, and change our expectations accordingly.
Actually, make that follow_dirlinks. What we want to influence is explicitly only links to directories, not links to files. Cf man rsync for a similar example.
It would be nice to have the possibility of following symbolic links to (sub)directories. Currently, we don't follow them.
find_duplicates_in_dirs
could have a newfollow_links
parameter, defaulting to False for compatibility.The text was updated successfully, but these errors were encountered: