Add comment for broken symlinks

This commit is contained in:
sharkdp 2020-02-28 13:19:42 +01:00 committed by David Peter
parent 82e6562cfc
commit d6034119ae
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}
}