]>
git.proxmox.com Git - rustc.git/blob - vendor/tar-0.4.38/examples/list.rs
1 //! An example of listing the file names of entries in an archive.
3 //! Takes a tarball on stdin and prints out all of the entries inside.
12 let mut ar
= Archive
::new(stdin());
13 for file
in ar
.entries().unwrap() {
14 let f
= file
.unwrap();
15 println
!("{}", f
.path().unwrap().display());