(log: &Logger)
| 84 | } |
| 85 | |
| 86 | fn new_metadata(log: &Logger) -> Metadata { |
| 87 | log.trace("Metadata file does not exist. Creating a new one".to_string()); |
| 88 | Metadata { |
| 89 | browsers: Vec::new(), |
| 90 | drivers: Vec::new(), |
| 91 | stats: Vec::new(), |
| 92 | cached_assets: Vec::new(), |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | pub fn get_metadata(log: &Logger, cache_path: &Option<PathBuf>) -> Metadata { |
| 97 | if let Some(cache) = cache_path { |