handle ISOs

This commit is contained in:
Max Bradbury 2023-05-04 19:04:18 +01:00
parent 7c26c38ccb
commit e6b9b927f4
1 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,14 @@ fn handle_image(file: DirEntry) {
move_file(file.path(), pictures_dir()); 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) { fn handle_gif(file: DirEntry) {
let mut dir = pictures_dir(); let mut dir = pictures_dir();
@ -173,6 +181,7 @@ fn handle_dir(path: PathBuf) {
"jpg" => { handle_image(inode) } "jpg" => { handle_image(inode) }
"jpeg" => { handle_image(inode) } "jpeg" => { handle_image(inode) }
"png" => { handle_image(inode) } "png" => { handle_image(inode) }
"iso" => { handle_iso( inode) }
"mp3" => { handle_mp3( inode) } "mp3" => { handle_mp3( inode) }
"pdf" => { handle_pdf( inode) } "pdf" => { handle_pdf( inode) }
"avi" => { handle_video(inode) } "avi" => { handle_video(inode) }