findutils icon indicating copy to clipboard operation
findutils copied to clipboard

FeatureComplete: handle symlinks

Open mcharsley opened this issue 8 years ago • 1 comments

This involves handling -H, -L and finishing find::matchers::type_matcher.

Take a look at https://github.com/BurntSushi/walkdir/blob/master/examples/walkdir.rs for hints on how to handle -L with walkdir and https://github.com/BurntSushi/walkdir/blob/master/src/tests.rs on how to test interaction with symlinks on both unix and windows machines

mcharsley avatar Mar 15 '17 09:03 mcharsley

Note that the current behaviour seems to be -H (follow top-level links), not -P (never follow links):

$ ln -s / link
$ find link
link
$ ./target/debug/find link
link
link/var
link/var/cache
link/var/cache/pacman
link/var/cache/pacman/pkg
...

tavianator avatar Mar 28 '21 18:03 tavianator