Function cpio::write_cpio

source ·
pub fn write_cpio<I, RS, W>(inputs: I, output: W) -> Result<W>
where I: Iterator<Item = (NewcBuilder, RS)> + Sized, RS: Read + Seek, W: Write,
Expand description

Creates a new CPIO archive.

Examples found in repository?
examples/createcpio.rs (line 24)
17
18
19
20
21
22
23
24
25
fn main() {
	let stdin = stdin();
	let inputs = stdin
		.lock()
		.lines()
		.map(|path| load_file(&path.unwrap()).unwrap());
		
	write_cpio(inputs, stdout()).unwrap();
}