OSTree.RepoCommitTraverseIter¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
dummy |
[ |
r/w |
|
dummy_checksum_data |
[ |
r/w |
|
initialized |
r/w |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class OSTree.RepoCommitTraverseIter¶
-
- clear()¶
- get_dir()¶
- Returns:
- out_name:
Name of current dir
- out_content_checksum:
Checksum of current content
- out_meta_checksum:
Checksum of current metadata
- Return type:
(out_name:
str
, out_content_checksum:str
, out_meta_checksum:str
)
Return information on the current directory. This function may only be called if
OSTree.RepoCommitIterResult.DIR
was returned fromOSTree.RepoCommitTraverseIter.next
().
- get_file()¶
- Returns:
- out_name:
Name of current file
- out_checksum:
Checksum of current file
- Return type:
Return information on the current file. This function may only be called if
OSTree.RepoCommitIterResult.FILE
was returned fromOSTree.RepoCommitTraverseIter.next
().
- init_commit(repo, commit, flags)¶
- Parameters:
repo (
OSTree.Repo
) – A repocommit (
GLib.Variant
) – Variant of typeOSTree.ObjectType.COMMIT
flags (
OSTree.RepoCommitTraverseFlags
) – Flags
- Raises:
- Return type:
Initialize (in place) an iterator over the root of a commit object.
- init_dirtree(repo, dirtree, flags)¶
- Parameters:
repo (
OSTree.Repo
) – A repodirtree (
GLib.Variant
) – Variant of typeOSTree.ObjectType.DIR_TREE
flags (
OSTree.RepoCommitTraverseFlags
) – Flags
- Raises:
- Return type:
Initialize (in place) an iterator over a directory tree.
- next(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – Cancellable- Raises:
- Return type:
Step the interator to the next item. Files will be returned first, then subdirectories. Call this in a loop; upon encountering
OSTree.RepoCommitIterResult.END
, there will be no more files or directories. IfOSTree.RepoCommitIterResult.DIR
is returned, then callOSTree.RepoCommitTraverseIter.get_dir
() to retrieve data for that directory. Similarly, ifOSTree.RepoCommitIterResult.FILE
is returned, callOSTree.RepoCommitTraverseIter.get_file
().If
OSTree.RepoCommitIterResult.ERROR
is returned, it is a program error to call any further API on self except forOSTree.RepoCommitTraverseIter.clear
().