MCPcopy Create free account
hub / github.com/Recordscript/recordscript / get_ext

Function get_ext

libs/hbb_common/src/fs.rs:252–257  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

250
251#[inline]
252fn get_ext(name: &str) -> &str {
253 if let Some(i) = name.rfind('.') {
254 return &name[i + 1..];
255 }
256 ""
257}
258
259#[inline]
260fn is_compressed_file(name: &str) -> bool {

Callers 1

is_compressed_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected