]>
git.proxmox.com Git - pxar.git/blob - examples/apxar.rs
1 use pxar
::decoder
::aio
::Decoder
;
5 let mut args
= std
::env
::args_os().skip(1);
7 let file
= args
.next().expect("expected a file name");
8 let file
= tokio
::fs
::File
::open(file
)
10 .expect("failed to open file");
12 let mut reader
= Decoder
::from_tokio(file
)
14 .expect("failed to open pxar archive contents");
16 while let Some(entry
) = reader
.next().await
{
17 println
!("{:#?}", entry
.expect("failed to parse entry").path());