Fix Config-file searching filter bug

This commit is contained in:
Matthias Beyer 2016-03-25 15:10:32 +01:00
parent 9f8a648600
commit 97c0d4c057

View file

@ -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();