parent
29ca30aea0
commit
b71051cda6
|
@ -0,0 +1,7 @@
|
|||
## Version 0.10
|
||||
- Initial Version
|
||||
- Duplicate file finder
|
||||
- Empty folder finder
|
||||
- Very WIP Orbtk GUI frontend
|
||||
- Basic GTK Frontend(without any logic)
|
||||
- CLI
|
|
@ -279,7 +279,10 @@ impl DuplicateFinder {
|
|||
_ => continue,
|
||||
};
|
||||
for entry in read_dir {
|
||||
let entry_data = entry.unwrap();
|
||||
let entry_data = match entry{
|
||||
Ok(t) => t,
|
||||
Err(_) => continue, //Permissions denied
|
||||
};
|
||||
let metadata: Metadata = match entry_data.metadata() {
|
||||
Ok(t) => t,
|
||||
Err(_) => continue, //Permissions denied
|
||||
|
|
|
@ -122,8 +122,14 @@ impl EmptyFolder {
|
|||
};
|
||||
|
||||
for entry in read_dir {
|
||||
let entry_data = entry.unwrap();
|
||||
let metadata: Metadata = entry_data.metadata().unwrap();
|
||||
let entry_data = match entry{
|
||||
Ok(t) => t,
|
||||
Err(_) => continue, //Permissions denied
|
||||
};
|
||||
let metadata: Metadata = match entry_data.metadata(){
|
||||
Ok(t) => t,
|
||||
Err(_) => continue, //Permissions denied
|
||||
};
|
||||
// If child is dir, still folder may be considered as empty if all children are only directories.
|
||||
if metadata.is_dir() {
|
||||
let mut is_excluded_dir = false;
|
||||
|
|
Loading…
Reference in New Issue