ignore incomplete downloads; handle spreadsheets
This commit is contained in:
parent
0be1ec6fca
commit
8b0efc287a
|
@ -181,10 +181,13 @@ fn handle_dir(path: PathBuf) {
|
||||||
|
|
||||||
if let Some(extension) = inode.path().extension().unwrap_or("none".as_ref()).to_str() {
|
if let Some(extension) = inode.path().extension().unwrap_or("none".as_ref()).to_str() {
|
||||||
match extension.to_string().to_lowercase().as_ref() {
|
match extension.to_string().to_lowercase().as_ref() {
|
||||||
|
"csv" => { handle_document(inode) }
|
||||||
"doc" => { handle_document(inode) }
|
"doc" => { handle_document(inode) }
|
||||||
"docx" => { handle_document(inode) }
|
"docx" => { handle_document(inode) }
|
||||||
"odt" => { handle_document(inode) }
|
"odt" => { handle_document(inode) }
|
||||||
"rtf" => { handle_document(inode) }
|
"rtf" => { handle_document(inode) }
|
||||||
|
"xls" => { handle_document(inode) }
|
||||||
|
"xlsx" => { handle_document(inode) }
|
||||||
"gif" => { handle_gif( inode) }
|
"gif" => { handle_gif( inode) }
|
||||||
"jpg" => { handle_image( inode) }
|
"jpg" => { handle_image( inode) }
|
||||||
"jpeg" => { handle_image( inode) }
|
"jpeg" => { handle_image( inode) }
|
||||||
|
@ -200,6 +203,7 @@ fn handle_dir(path: PathBuf) {
|
||||||
"mp4" => { handle_video( inode) }
|
"mp4" => { handle_video( inode) }
|
||||||
"srt" => { handle_video( inode) }
|
"srt" => { handle_video( inode) }
|
||||||
"7z" => { }
|
"7z" => { }
|
||||||
|
"parts" => { }
|
||||||
"torrent" => { }
|
"torrent" => { }
|
||||||
"zip" => { }
|
"zip" => { }
|
||||||
_ => { println!("Not sure what to do with file: {:?}.", inode.path()); }
|
_ => { println!("Not sure what to do with file: {:?}.", inode.path()); }
|
||||||
|
|
Loading…
Reference in New Issue