fix: general impovements + recursive creation

This commit is contained in:
Vladimir Rubin 2024-12-30 19:03:42 +02:00
parent 2bacc48e17
commit ef339297c3
Signed by: vavakado
GPG key ID: CAB744727F36B524

View file

@ -117,6 +117,8 @@ fn main() {
break; break;
} }
println!("Selected: {}", actual_selection.join(", "));
let recursive: bool; let recursive: bool;
loop { loop {
@ -225,9 +227,13 @@ fn move_file_to_directory(path: &Path, dir: &Path) {
} }
if !dir.exists() { if !dir.exists() {
match fs::create_dir(dir) { match fs::create_dir_all(dir) {
Ok(_) => {} Ok(_) => {}
Err(err) => eprintln!("Error creating destination directory: {}", err), Err(err) => eprintln!(
"Error creating destination directory({}): {}",
dir.display(),
err
),
} }
return; return;
} }