Skip to main content

remove_path

Function remove_path 

Source
pub fn remove_path(ctx: &mut HostContext, path: &Path) -> Result<()>
Expand description

Remove a file, symlink, or directory tree at path.

In dry-run mode, records a planned rm -f and returns.

ยงErrors

Returns HortoError::Io on remove failure in apply mode.