()
| 611 | } |
| 612 | |
| 613 | pub fn default_cache_folder() -> PathBuf { |
| 614 | if let Some(base_dirs) = BaseDirs::new() { |
| 615 | return Path::new(base_dirs.home_dir()) |
| 616 | .join(String::from(CACHE_FOLDER).replace('/', std::path::MAIN_SEPARATOR_STR)); |
| 617 | } |
| 618 | PathBuf::new() |
| 619 | } |
| 620 | |
| 621 | pub fn compose_driver_path_in_cache( |
| 622 | driver_path: PathBuf, |