MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / save

Method save

src/sys/prompt.rs:149–152  ·  view source on GitHub ↗

Save

(&mut self, path: &str)

Source from the content-addressed store, hash-verified

147
148 // Save
149 pub fn save(&mut self, path: &str)
150 {
151 crate::fs::write(path, self.items.join("\n").as_bytes()).ok();
152 }
153}
154
155

Callers 1

runFunction · 0.80

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected