From 8b0efc287ab1d186582a7eb286b16c6d8d39f804 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Thu, 11 May 2023 18:51:42 +0100 Subject: [PATCH] ignore incomplete downloads; handle spreadsheets --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 5df2759..0999d6a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -181,10 +181,13 @@ fn handle_dir(path: PathBuf) { if let Some(extension) = inode.path().extension().unwrap_or("none".as_ref()).to_str() { match extension.to_string().to_lowercase().as_ref() { + "csv" => { handle_document(inode) } "doc" => { handle_document(inode) } "docx" => { handle_document(inode) } "odt" => { handle_document(inode) } "rtf" => { handle_document(inode) } + "xls" => { handle_document(inode) } + "xlsx" => { handle_document(inode) } "gif" => { handle_gif( inode) } "jpg" => { handle_image( inode) } "jpeg" => { handle_image( inode) } @@ -200,6 +203,7 @@ fn handle_dir(path: PathBuf) { "mp4" => { handle_video( inode) } "srt" => { handle_video( inode) } "7z" => { } + "parts" => { } "torrent" => { } "zip" => { } _ => { println!("Not sure what to do with file: {:?}.", inode.path()); }