Function gnunet_sys::GNUNET_DISK_directory_test[][src]

pub unsafe extern "C" fn GNUNET_DISK_directory_test(
    fil: *const c_char,
    is_readable: c_int
) -> GNUNET_GenericReturnValue

Test if @a fil is a directory and listable. Optionally, also check if the directory is readable. Will not print an error message if the directory does not exist. Will log errors if #GNUNET_SYSERR is returned (i.e., a file exists with the same name).

@param fil filename to test @param is_readable #GNUNET_YES to additionally check if @a fil is readable; #GNUNET_NO to disable this check @return #GNUNET_YES if yes, #GNUNET_NO if not; #GNUNET_SYSERR if it does not exist or stated