handle bin/cue, ignore archives and torrents

This commit is contained in:
Max Bradbury 2023-05-11 18:45:48 +01:00
parent 8c0d9a7236
commit 0be1ec6fca
1 changed files with 22 additions and 18 deletions

View File

@ -189,6 +189,8 @@ fn handle_dir(path: PathBuf) {
"jpg" => { handle_image( inode) }
"jpeg" => { handle_image( inode) }
"png" => { handle_image( inode) }
"bin" => { handle_iso( inode) }
"cue" => { handle_iso( inode) }
"iso" => { handle_iso( inode) }
"mp3" => { handle_mp3( inode) }
"pdf" => { handle_pdf( inode) }
@ -197,7 +199,9 @@ fn handle_dir(path: PathBuf) {
"mkv" => { handle_video( inode) }
"mp4" => { handle_video( inode) }
"srt" => { handle_video( inode) }
// todo other documents
"7z" => { }
"torrent" => { }
"zip" => { }
_ => { println!("Not sure what to do with file: {:?}.", inode.path()); }
}
}