(src: &[u8], dst: impl AsRef<Path>)
| 574 | } |
| 575 | |
| 576 | fn copy_dir(src: &[u8], dst: impl AsRef<Path>) -> io::Result<()> { |
| 577 | let reader = Cursor::new(src); |
| 578 | let mut archieve = ZipArchive::new(reader)?; |
| 579 | archieve.extract(dst)?; |
| 580 | Ok(()) |
| 581 | } |
| 582 | |
| 583 | // TODO write man docs for the command line tool and its Config if expanded further. |
| 584 | // Have to improve error handling by introduction of custom error type. |
no outgoing calls
no test coverage detected