Merge pull request #275 from matthiasbeyer/libimagrt/config-file-search-filter-bug

Fix Config-file searching filter bug
This commit is contained in:
Matthias Beyer 2016-03-26 13:55:02 +01:00
commit b2329c323a
1 changed files with 1 additions and 1 deletions

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