Add manual bindings for MutableTree reading
I'm trying to debug a problem in ostree-rs-ext, and it's handy to be able to do `dbg!(mtree.copy_files())`.
This commit is contained in:
1 parent
46b4a12b23
commit
1199ae9bbc
3 files changed
+50
No files matched your search
@@ -50,6 +50,8 @@ impl CapTestRepo {
|
||||
|
||||
pub fn create_mtree(repo: &ostree::Repo) -> ostree::MutableTree {
|
||||
let mtree = ostree::MutableTree::new();
|
||||
assert_eq!(mtree.copy_files().len(), 0);
|
||||
assert_eq!(mtree.copy_subdirs().len(), 0);
|
||||
let file = gio::File::for_path(
|
||||
Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("tests")
|
||||
|
||||
Reference in new issue
Block a user