()
| 328 | } |
| 329 | |
| 330 | fn read_cache_path() -> String { |
| 331 | let mut cache_path: String = path_to_string(&default_cache_folder()); |
| 332 | CACHE_PATH.with(|value| { |
| 333 | let path: String = (&*value.borrow().to_string()).into(); |
| 334 | if !path.is_empty() { |
| 335 | cache_path = path; |
| 336 | } |
| 337 | }); |
| 338 | cache_path |
| 339 | } |
| 340 | |
| 341 | #[cfg(windows)] |
| 342 | fn get_win_os_architecture() -> String { |