MCPcopy Create free account
hub / github.com/bootc-dev/bootc / append_dir_entry

Function append_dir_entry

crates/lib/src/container_export.rs:381–387  ·  view source on GitHub ↗
(tar_builder: &mut tar::Builder<W>, path: &str)

Source from the content-addressed store, hash-verified

379}
380
381fn append_dir_entry<W: Write>(tar_builder: &mut tar::Builder<W>, path: &str) -> Result<()> {
382 let mut header = tar_header_dir_root();
383 tar_builder
384 .append_data(&mut header, path, &mut std::io::empty())
385 .with_context(|| format!("Failed to create {} directory", path))?;
386 Ok(())
387}
388
389fn compute_selinux_label(
390 policy: &ostree::SePolicy,

Callers 1

handle_kernel_relocationFunction · 0.85

Calls 1

tar_header_dir_rootFunction · 0.85

Tested by

no test coverage detected