handle ISOs
This commit is contained in:
parent
7c26c38ccb
commit
e6b9b927f4
|
@ -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) }
|
||||
|
|
Loading…
Reference in New Issue