diff --git a/src/main.rs b/src/main.rs index 5421968..471bba9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,6 +65,14 @@ fn handle_image(file: DirEntry) { move_file(file.path(), pictures_dir()); } +fn handle_iso(file: DirEntry) { + let mut dir = home_dir(); + + dir.push("ISOs"); + + move_file(file.path(), dir); +} + fn handle_gif(file: DirEntry) { let mut dir = pictures_dir(); @@ -173,6 +181,7 @@ fn handle_dir(path: PathBuf) { "jpg" => { handle_image(inode) } "jpeg" => { handle_image(inode) } "png" => { handle_image(inode) } + "iso" => { handle_iso( inode) } "mp3" => { handle_mp3( inode) } "pdf" => { handle_pdf( inode) } "avi" => { handle_video(inode) }