pull/1087/head
Rafał Mikrut 8 months ago
parent 26028b5e92
commit ae01e76843

@ -167,7 +167,12 @@ fn test_temporary_files() {
}
fn test_empty_folders() {
info!("test_empty_folders");
run_test(&["empty-folders", "-d", "TestFiles", "-D"], vec![], vec!["EmptyFolders/One", "EmptyFolders/Two"], vec![]);
run_test(
&["empty-folders", "-d", "TestFiles", "-D"],
vec![],
vec!["EmptyFolders/One", "EmptyFolders/Two", "EmptyFolders/Two/TwoInside"],
vec![],
);
}
fn test_biggest_files() {

@ -100,14 +100,14 @@ pub enum ErrorType {
/// Enum with values which show if folder is empty.
/// In function "`optimize_folders`" automatically "Maybe" is changed to "Yes", so it is not necessary to put it here
#[derive(Eq, PartialEq, Copy, Clone)]
#[derive(Eq, PartialEq, Copy, Clone, Debug)]
pub(crate) enum FolderEmptiness {
No,
Maybe,
}
/// Struct assigned to each checked folder with parent path(used to ignore parent if children are not empty) and flag which shows if folder is empty
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct FolderEntry {
pub(crate) parent_path: Option<PathBuf>,
// Usable only when finding

Loading…
Cancel
Save