pub unsafe extern "C" fn tr_sys_path_rename(
    src_path: *const c_char,
    dst_path: *const c_char,
    error: *mut *mut tr_error
) -> u8
Expand description

@brief Portability wrapper for rename ().

@param[in] src_path Path to source file or directory. @param[in] dst_path Path to destination file or directory. @param[out] error Pointer to error object. Optional, pass NULL if you are not interested in error details.

@return True on success, false otherwise (with error set accordingly). Rename will generally only succeed if both source and destination are on the same partition.