MCPcopy Create free account
hub / github.com/VimYoung/Spell / copy_dir

Function copy_dir

spell-cli/src/main.rs:576–581  ·  view source on GitHub ↗
(src: &[u8], dst: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

574}
575
576fn 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.

Callers 1

create_spell_projectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected