MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / unpack_into

Function unpack_into

crates/openshell-cli/src/ssh.rs:2036–2039  ·  view source on GitHub ↗
(archive_bytes: &[u8], staging: &Path)

Source from the content-addressed store, hash-verified

2034 }
2035
2036 fn unpack_into(archive_bytes: &[u8], staging: &Path) {
2037 let mut archive = tar::Archive::new(std::io::Cursor::new(archive_bytes));
2038 archive.unpack(staging).expect("unpack archive");
2039 }
2040
2041 #[test]
2042 fn place_downloaded_file_writes_regular_file_at_dest() {

Calls

no outgoing calls