diff --git a/src/filesystem.rs b/src/filesystem.rs index 2e7c654..fa91d14 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -298,13 +298,7 @@ fn _reimport_directory>(pool: &DbPool, directory: T) -> Result<() .into_iter() .filter_map(|e| e.ok()) .filter(|e| e.path().is_file()) - .filter_map(|e| match fs::canonicalize(e.path()) { - Ok(_) => Some(e.into_path()), - Err(err) => { - error!("Could not canonicalize {}! {}", e.path().display(), err); - None - } - }) + .map(|e| fs::canonicalize(e.into_path()).unwrap()) .collect(); let absolute_path = fs::canonicalize(&directory)?;