Function alpm_sys::alpm_filelist_contains
source · pub unsafe extern "C" fn alpm_filelist_contains(
filelist: *mut alpm_filelist_t,
path: *const c_char
) -> *mut alpm_file_t
Expand description
Determines whether a package filelist contains a given path. The provided path should be relative to the install root with no leading slashes, e.g. “etc/localtime”. When searching for directories, the path must have a trailing slash. @param filelist a pointer to a package filelist @param path the path to search for in the package @return a pointer to the matching file or NULL if not found