Skip to main content

check_destination

Function check_destination 

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

Check that touching destination under target stays inside the target.

No symlink on any component, directories where directories are needed, and nothing but a regular file (or nothing) at the end.

ยงErrors

A DestinationRefusal naming what was found.