mirror of
https://github.com/sharkdp/fd
synced 2024-07-25 04:14:33 +00:00
Add comment for broken symlinks
This commit is contained in:
parent
82e6562cfc
commit
d6034119ae
|
@ -65,6 +65,7 @@ impl TryFrom<WorkerResult> for PathBuf {
|
|||
&& fs::symlink_metadata(&path)
|
||||
.map_or(false, |m| m.file_type().is_symlink())
|
||||
{
|
||||
// Broken symlink
|
||||
return Ok(path.to_path_buf());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue