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_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.
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_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: