Skip to main content

copy_dir_contents

Function copy_dir_contents 

Source
pub fn copy_dir_contents(
    ctx: &mut HostContext,
    src: &Path,
    dest: &Path,
) -> Result<()>
Expand description

Recursively copy contents of src into dest (like cp -a src/. dest/).

In dry-run mode, records one planned action and returns without walking.

ยงErrors

Returns HortoError::Io on directory/file create or copy failure in apply mode.