1
0
Fork 0
mirror of synced 2024-05-17 19:03:08 +12:00

Btreemap simplifying

This commit is contained in:
Rafał Mikrut 2023-05-01 22:18:16 +02:00
parent 8a3010cd8f
commit e59d209c57

View file

@ -686,9 +686,9 @@ pub fn get_lowercase_name(entry_data: &DirEntry, warnings: &mut Vec<String>) ->
}
fn set_as_not_empty_folder(folder_entries: &mut BTreeMap<PathBuf, FolderEntry>, current_folder: &Path) {
// Not folder so it may be a file or symbolic link so it isn't empty
folder_entries.get_mut(current_folder).unwrap().is_empty = FolderEmptiness::No;
let mut d = folder_entries.get_mut(current_folder).unwrap();
// Not folder so it may be a file or symbolic link so it isn't empty
d.is_empty = FolderEmptiness::No;
// Loop to recursively set as non empty this and all his parent folders
loop {
d.is_empty = FolderEmptiness::No;