sharkdp/fd

--min-depth is broken for broken symlinks

Open

#1,017 opened on May 12, 2022

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Rust (1,059 forks)batch import
bughelp wanted

Repository metrics

Stars
 (42,984 stars)
PR merge metrics
 (Avg merge 15d 23h) (16 merged PRs in 30d)

Description

tavianator@tachyon $ ln -s nowhere foo/bar/baz/link
tavianator@tachyon $ fd link foo -L
foo/bar/baz/link
tavianator@tachyon $ fd link foo -L --min-depth=1
tavianator@tachyon $ fd link foo -L --min-depth=0
tavianator@tachyon $

Because:

https://github.com/sharkdp/fd/blob/306cd99273125adb13af74c7801b6fab747fef5d/src/walk.rs#L447-L452

https://github.com/sharkdp/fd/blob/306cd99273125adb13af74c7801b6fab747fef5d/src/walk.rs#L510-L514

Contributor guide