rustix::fs

Function renameat_with

Source
pub fn renameat_with<P: Arg, Q: Arg, PFd: AsFd, QFd: AsFd>(
    old_dirfd: PFd,
    old_path: P,
    new_dirfd: QFd,
    new_path: Q,
    flags: RenameFlags,
) -> Result<()>
Expand description

renameat2(old_dirfd, old_path, new_dirfd, new_path, flags)—Renames a file or directory.

§References