+ match file_handler.get_layout_or_panic(&files) {
+ Ok(_) => {},
+ Err(error) => {
+ eprintln!("{}", error);
+ exit(1);
+ }
+ }
+
+ // Step 3. Prepare the target priority
+ match remove_dir_all(&html_destination) {
+ _ => {}
+ };
+ match remove_dir_all(&gemini_destination) {
+ _ => {}
+ };
+
+ create_dir_all(&html_destination)
+ .expect("Could not create HTML directory.");
+ create_dir_all(&gemini_destination)
+ .expect("Could not create Gemini directory.");