Function transmission_sys::tr_sys_path_is_same
source · pub unsafe extern "C" fn tr_sys_path_is_same(
path1: *const c_char,
path2: *const c_char,
error: *mut *mut tr_error
) -> u8
Expand description
@brief Test to see if the two filenames point to the same file.
@param[in] path1 Path to first file or directory.
@param[in] path2 Path to second file or directory.
@param[out] error Pointer to error object. Optional, pass NULL
if you are
not interested in error details.
@return True
if two paths point to the same file or directory, false
otherwise. Note that false
will also be returned in case of error;
if you need to distinguish the two, check if error
is NULL
afterwards.