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

@brief Portability wrapper for access ().

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

@return True if path exists, 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.