Function transmission_sys::tr_sys_path_exists
source · 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.