Function remove_broken_symlink

Source
pub fn remove_broken_symlink(path: &Utf8Path) -> Result<(), UpError>
Expand description

Remove a broken symlink.

You can normally check for a broken symlink with: !path.exists() && path.symlink_metadata().is_ok() This checks that the path pointed to doesn’t exist, but that the symlink does exist.