MCPcopy Create free account
hub / github.com/PerroEngine/Perro / save_string

Function save_string

perro_source/api_modules/perro_modules/src/file.rs:33–35  ·  view source on GitHub ↗
(path: P, data: &str)

Source from the content-addressed store, hash-verified

31}
32
33pub fn save_string<P: ResPathSource>(path: P, data: &str) -> io::Result<()> {
34 save_bytes(path, data.as_bytes())
35}
36
37pub fn exists<P: ResPathSource>(path: P) -> bool {
38 let path = path.as_res_path_str();

Callers

nothing calls this directly

Calls 2

save_bytesFunction · 0.70
as_bytesMethod · 0.45

Tested by

no test coverage detected