use std::io::Result;
use std::env::current_dir;
-use std::fs::create_dir_all;
+use std::fs::{create_dir_all, remove_dir_all};
use crate::gemini_parser::parse;
use crate::file_finder::find_files;
let files = find_files(&source);
// Step 2. Prepare the target priority
+ match remove_dir_all(&destination) {
+ _ => {}
+ };
create_dir_all(&destination)?;
println!("Found {} files", files.len());