diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-03-25 15:10:32 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-03-25 15:15:22 +0100 |
commit | 97c0d4c057811dd57d93caf7aaed0d1e8c8883a1 (patch) | |
tree | 1ec7932204d79230be1d72a2b0f5545b308b8fe7 /libimagrt | |
parent | 9f8a648600691b97922abfdb4ce56b8594dbb854 (diff) |
Fix Config-file searching filter bug
Diffstat (limited to 'libimagrt')
-rw-r--r-- | libimagrt/src/configuration.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Value> { .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(); |