Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Recordscript/recordscript
/ get_file_name
Function
get_file_name
libs/hbb_common/src/fs.rs:103–108 ·
view source on GitHub ↗
(p: &Path)
Source
from the content-addressed store, hash-verified
101
102
#[inline]
103
pub fn get_file_name(p: &Path) -> String {
104
p.file_name()
105
.map(|p| p.to_str().unwrap_or(
""
))
106
.unwrap_or(
""
)
107
.to_owned()
108
}
109
110
#[inline]
111
pub fn get_string(path: &Path) -> String {
Callers
1
read_dir
Function · 0.85
Calls
1
file_name
Method · 0.80
Tested by
no test coverage detected