Skip to main content

mv_file

Function mv_file 

Source
pub fn mv_file(src: &Path, dst: &Path, config: &MvConfig) -> Result<()>
Expand description

Move a single file or directory from src to dst.

Tries rename() first (atomic, same filesystem). If that fails with EXDEV (cross-device), falls back to recursive copy + remove.