Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LibertyOS-Development/kernel
/ fname
Function
fname
src/fs/mod.rs:226–236 ·
view source on GitHub ↗
File name
(pname: &str)
Source
from the content-addressed store, hash-verified
224
225
// File name
226
pub fn fname(pname: &str) -> &str
227
{
228
let n = pname.len();
229
let i = match pname.rfind(
'/'
)
230
{
231
Some(i) => i + 1,
232
None => 0,
233
};
234
235
&pname[i..n]
236
}
237
238
239
// Info
Callers
9
shcomp
Function · 0.85
create
Method · 0.85
del
Method · 0.85
open
Method · 0.85
create
Method · 0.85
rm
Method · 0.85
create
Method · 0.85
open
Method · 0.85
open
Method · 0.85
Calls
1
len
Method · 0.45
Tested by
no test coverage detected