(path_ptr: *const u8)
| 1345 | |
| 1346 | #[no_mangle] |
| 1347 | pub 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] |
| 1354 | pub extern "C" fn bloom_read_file(path_ptr: *const u8) -> *const u8 { |
nothing calls this directly
no test coverage detected