pub fn copy<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,
) -> OperationExpand description
Copy the file from to to, which must not exist and appears only once whole. progress hears of the bytes copied out of the total every so often.