Skip to content
Myr

Add additional check for symlink

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent bbf0f1c · Browse files · 1 file+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−1 removed

  • other:+6 added−1 removed

1 file+6 added−1 removed

modified:src/walk.rs+6 added-1 removed
310 unmodified lines
311 Err(ignore::Error::WithPath {312 path,313 err: inner_err,314 }) => match inner_err.as_ref() {315 ignore::Error::Io(io_error) if io_error.kind() == io::ErrorKind::NotFound => {315 ignore::Error::Io(io_error)316 if io_error.kind() == io::ErrorKind::NotFound317 && path318 .symlink_metadata()319 .map_or(false, |m| m.file_type().is_symlink()) =>320 {321 DirEntry::BrokenSymlink(path.to_owned())322 }323 _ => {324 tx_thread
117 unmodified lines