Skip to main content

copy_tree

Function copy_tree 

Source
pub fn copy_tree(
    src: &Path,
    dst: &Path,
    keep: &dyn Fn(&Path) -> bool,
) -> Result<usize, String>
Expand description

Copies the files under src that keep accepts to the same places under dst (made if missing), folders included. Returns how many files were copied.