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

Function rpath

src/fs/mod.rs:411–423  ·  view source on GitHub ↗

Real path

(pname: &str)

Source from the content-addressed store, hash-verified

409
410// Real path
411pub fn rpath(pname: &str) -> String
412{
413 if pname.starts_with('/')
414 {
415 pname.into()
416 }
417 else
418 {
419 let dname = crate::sys::proc::directory();
420 let sep = if dname.ends_with('/') { "" } else { "/" };
421 format!("{}{}{}", dname, sep, pname)
422 }
423}
424
425
426// Write

Callers 10

shcompFunction · 0.85
createMethod · 0.85
delMethod · 0.85
openMethod · 0.85
createMethod · 0.85
openMethod · 0.85
rmMethod · 0.85
createMethod · 0.85
openMethod · 0.85
openMethod · 0.85

Calls 2

directoryFunction · 0.85
intoMethod · 0.80

Tested by

no test coverage detected