[][src]Function alpm_sys_fork::alpm_filelist_contains

pub unsafe extern "C" fn alpm_filelist_contains(
    filelist: *mut alpm_filelist_t,
    path: *const c_char
) -> *mut alpm_file_t

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