Skip to main content

dr_rename_file

Function dr_rename_file 

Source
pub unsafe extern "C" fn dr_rename_file(
    src: *const c_char,
    dst: *const c_char,
    replace: bool_,
) -> bool_
Expand description

Renames the file \p src to \p dst, replacing an existing file named \p dst if \p replace is true. Atomic if \p src and \p dst are on the same filesystem. Returns true if successful.