()
| 358 | } |
| 359 | |
| 360 | fn read_cache_path() -> String { |
| 361 | let mut cache_path: String = path_to_string(&default_cache_folder()); |
| 362 | CACHE_PATH.with(|value| { |
| 363 | let path: String = (&*value.borrow().to_string()).into(); |
| 364 | if !path.is_empty() { |
| 365 | cache_path = path; |
| 366 | } |
| 367 | }); |
| 368 | cache_path |
| 369 | } |
| 370 | |
| 371 | #[cfg(windows)] |
| 372 | fn get_win_os_architecture() -> String { |