[READ-ONLY] Mirror of https://github.com/probablykasper/time-machine-inspector. Time Machine backup size inspector app
backup macos tauri time-machine
0

Configure Feed

Select the types of activity you want to include in your feed.

More verbose error message

Kasper (May 17, 2022, 3:34 AM +0200) c0c7c842 233eaa0c

+5 -2
+5 -2
src-tauri/src/dir_map.rs
··· 49 49 let mut dir_map = DirMap::new(); 50 50 51 51 for str_path in str_paths { 52 - let path = PathBuf::from(str_path); 52 + let path = PathBuf::from(&str_path); 53 53 54 54 for ancestor in path.ancestors() { 55 55 if ancestor == Path::new("/") { 56 56 break; 57 57 } 58 - dir_map.item_entry(ancestor)?.or_insert(()); 58 + dir_map 59 + .item_entry(ancestor) 60 + .map_err(|e| format!("Unable to save path \"{}\": {}", str_path, e))? 61 + .or_insert(()); 59 62 } 60 63 } 61 64 Ok(dir_map)