ltk::files

Function rename

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

Move from to to, which must not exist; in a browser, within one mount.