diff --git a/libimagrt/src/configuration.rs b/libimagrt/src/configuration.rs index c45b7a8f..47b2bc96 100644 --- a/libimagrt/src/configuration.rs +++ b/libimagrt/src/configuration.rs @@ -227,7 +227,7 @@ fn fetch_config(rtp: &PathBuf) -> Result { .unwrap_or(vec![]), ].iter() .flatten() - .filter(|path| path.exists()) + .filter(|path| path.exists() && path.is_file()) .map(|path| { let content = { let mut s = String::new();