Skip to content
Myr

Add comment for broken symlinks

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 82e6562 · Browse files · 1 file+1 added−0 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+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/walk.rs+1 added
63 unmodified lines
64 if io_err.kind() == io::ErrorKind::NotFound65 && fs::symlink_metadata(&path)66 .map_or(false, |m| m.file_type().is_symlink())67 {68 // Broken symlink69 return Ok(path.to_path_buf());70 }71 }72 }
348 unmodified lines