MCPcopy Create free account
hub / github.com/evilsocket/cake / set_cache_dir

Function set_cache_dir

cake-mobile/src/lib.rs:81–93  ·  view source on GitHub ↗
(path: String)

Source from the content-addressed store, hash-verified

79/// No-op on iOS (sandbox paths are determined automatically).
80#[uniffi::export]
81pub fn set_cache_dir(path: String) {
82 #[cfg(target_os = "android")]
83 {
84 log_mobile(&format!("[cake-mobile] set_cache_dir: {}", path));
85 if let Ok(mut d) = ANDROID_CACHE_DIR.lock() {
86 *d = path;
87 }
88 }
89 #[cfg(not(target_os = "android"))]
90 {
91 let _ = path;
92 }
93}
94
95fn get_cache_dir() -> std::path::PathBuf {
96 #[cfg(target_os = "android")]

Callers 1

cake_set_cache_dirFunction · 0.85

Calls 1

log_mobileFunction · 0.85

Tested by

no test coverage detected