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.Cancellable
orNone
) – 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.Variant
representing the children of this directory.- Return type:
GLib.Variant
orNone
This API will return
None
if the file is not “resolved” i.e. in a loaded state. It will also returnNone
if this path is not a directory tree.
- tree_get_contents_checksum()¶
- tree_get_metadata()¶
- Returns:
The
GLib.Variant
representing the metadata for this directory.- Return type:
GLib.Variant
orNone
This API will return
None
if the file is not “resolved” i.e. in a loaded state. It will also returnNone
if 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.FileQueryInfoFlags
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
True
on success and the out_info is set,False
otherwise.- out_info:
the
Gio.FileInfo
of 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.