Skip to main content

remove_within

Function remove_within 

Source
pub fn remove_within(target: &Utf8Path, destination: &Utf8Path) -> Result<()>
Expand description

Remove a repository-relative file under a target, refusing a path that leaves it.

ยงErrors

A std::io::ErrorKind::PermissionDenied error naming the refusal when the destination cannot be touched, and any I/O error of the removal.