Function notmuch_sys::notmuch_database_get_directory [] [src]

pub unsafe extern "C" fn notmuch_database_get_directory(
    database: *mut notmuch_database_t,
    path: *const c_char,
    directory: *mut *mut notmuch_directory_t
) -> notmuch_status_t

Retrieve a directory object from the database for 'path'.

Here, 'path' should be a path relative to the path of 'database' (see notmuch_database_get_path), or else should be an absolute path with initial components that match the path of 'database'.

If this directory object does not exist in the database, this returns notmuch_status_t::SUCCESS and sets *directory to NULL.

Otherwise the returned directory object is owned by the database and as such, will only be valid until notmuch_database_destroy is called.

Return value: