MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bloom_file_exists

Function bloom_file_exists

native/ios/src/lib.rs:2015–2019  ·  view source on GitHub ↗
(path_ptr: *const u8)

Source from the content-addressed store, hash-verified

2013
2014#[no_mangle]
2015pub extern "C" fn bloom_file_exists(path_ptr: *const u8) -> f64 {
2016 let path = str_from_header(path_ptr);
2017 let resolved = resolve_path(path);
2018 if std::path::Path::new(&resolved).exists() { 1.0 } else { 0.0 }
2019}
2020
2021#[no_mangle]
2022pub extern "C" fn bloom_read_file(path_ptr: *const u8) -> *const u8 {

Callers 1

fileExistsFunction · 0.50

Calls 2

str_from_headerFunction · 0.85
resolve_pathFunction · 0.70

Tested by

no test coverage detected