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

Function bloom_file_exists

native/android/src/lib.rs:1347–1351  ·  view source on GitHub ↗
(path_ptr: *const u8)

Source from the content-addressed store, hash-verified

1345
1346#[no_mangle]
1347pub extern "C" fn bloom_file_exists(path_ptr: *const u8) -> f64 {
1348 let path = str_from_header(path_ptr);
1349 let resolved = resolve_path(path);
1350 if std::path::Path::new(&resolved).exists() { 1.0 } else { 0.0 }
1351}
1352
1353#[no_mangle]
1354pub extern "C" fn bloom_read_file(path_ptr: *const u8) -> *const u8 {

Callers

nothing calls this directly

Calls 2

str_from_headerFunction · 0.85
resolve_pathFunction · 0.70

Tested by

no test coverage detected