ltk::files

Function copy_all

Source
pub fn copy_all<M: Send + 'static>(
    from: impl Into<PathBuf>,
    to: impl Into<PathBuf>,
    sender: &ChannelSender<M>,
    progress: impl Fn(u64, u64) -> M + Send + 'static,
    done: impl FnOnce(Result<()>) -> M + Send + 'static,
) -> Operation
Expand description

Copy the directory from and everything in it to to, which must not exist; a copy that fails or is cancelled leaves no to behind.