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

Method del

src/fs/file.rs:63–76  ·  view source on GitHub ↗

Delete

(pname: &str)

Source from the content-addressed store, hash-verified

61
62 // Delete
63 pub fn del(pname: &str) -> Result<(), ()>
64 {
65 let pname = rpath(pname);
66 let dname = dname(&pname);
67 let fname = fname(&pname);
68 if let Some(mut directory) = Directory::open(dname)
69 {
70 directory.item_del(fname)
71 }
72 else
73 {
74 Err(())
75 }
76 }
77
78
79 // Name

Callers

nothing calls this directly

Calls 6

rpathFunction · 0.85
dnameFunction · 0.85
fnameFunction · 0.85
item_delMethod · 0.80
openFunction · 0.70
ErrEnum · 0.50

Tested by

no test coverage detected