OSTree.RepoFile¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class OSTree.RepoFile(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- ensure_resolved()¶
- Raises:
- Returns:
- Return type:
Ensure that the backing metadata is loaded.
- get_repo()¶
- Returns:
Repository
- Return type:
- get_root()¶
- Returns:
The root directory for the commit referenced by this file
- Return type:
- get_xattrs(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – Cancellable- Raises:
- Returns:
- out_xattrs:
the extended attributes
- Return type:
(
bool, out_xattrs:GLib.Variant)
- tree_find_child(name)¶
- Parameters:
name (
str) – name of the child- Return type:
(
int, is_dir:bool, out_container:GLib.Variant)
- tree_get_contents()¶
- Returns:
The
GLib.Variantrepresenting the children of this directory.- Return type:
GLib.VariantorNone
This API will return
Noneif the file is not “resolved” i.e. in a loaded state. It will also returnNoneif this path is not a directory tree.
- tree_get_contents_checksum()¶
- tree_get_metadata()¶
- Returns:
The
GLib.Variantrepresenting the metadata for this directory.- Return type:
GLib.VariantorNone
This API will return
Noneif the file is not “resolved” i.e. in a loaded state. It will also returnNoneif this path is not a directory tree.
- tree_get_metadata_checksum()¶
- tree_query_child(n, attributes, flags, cancellable)¶
- Parameters:
n (
int) – the child numberattributes (
str) – an attribute string to match, seeGio.FileAttributeMatcher.new()flags (
Gio.FileQueryInfoFlags) – aGio.FileQueryInfoFlagscancellable (
Gio.CancellableorNone) – aGio.CancellableorNone
- Raises:
- Returns:
Trueon success and the out_info is set,Falseotherwise.- out_info:
the
Gio.FileInfoof the child.
- Return type:
(
bool, out_info:Gio.FileInfo)
- tree_set_metadata(checksum, metadata)¶
- Parameters:
checksum (
str) –metadata (
GLib.Variant) –
Replace the metadata checksum and metadata object.