Function openat::rename [] [src]

pub fn rename<P, R>(old_dir: &Dir, old: P, new_dir: &Dir, new: R) -> Result<()> where P: AsPath, R: AsPath

Rename (move) a file between directories

Files must be on a single filesystem anyway. This funtion does not fallback to copying if needed.