()
| 597 | } |
| 598 | |
| 599 | pub fn default_cache_folder() -> PathBuf { |
| 600 | if let Some(base_dirs) = BaseDirs::new() { |
| 601 | return Path::new(base_dirs.home_dir()) |
| 602 | .join(String::from(CACHE_FOLDER).replace('/', std::path::MAIN_SEPARATOR_STR)); |
| 603 | } |
| 604 | PathBuf::new() |
| 605 | } |
| 606 | |
| 607 | pub fn compose_driver_path_in_cache( |
| 608 | driver_path: PathBuf, |