MCPcopy Create free account
hub / github.com/Sovereign-Engineering/obscuravpn-client / add_path

Method add_path

rustlib/src/debug_bundle/builder.rs:59–67  ·  view source on GitHub ↗
(&mut self, name: &str, ext: Option<&str>, path: &Utf8Path)

Source from the content-addressed store, hash-verified

57 }
58
59 pub fn add_path(&mut self, name: &str, ext: Option<&str>, path: &Utf8Path) {
60 self.add(name, |zipper| {
61 if let Some(ext) = ext {
62 zipper.copy_from_fs(path, format!("{name}.{ext}").as_ref())
63 } else {
64 zipper.copy_from_fs(path, name.as_ref())
65 }
66 });
67 }
68
69 pub fn add_cmd(&mut self, name: &str, ext: &str, mut cmd: diva::Command) {
70 self.add(name, |zipper| {

Callers 1

create_debug_bundleFunction · 0.80

Calls 2

copy_from_fsMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected