Fix Config-file searching filter bug
This commit is contained in:
parent
9f8a648600
commit
97c0d4c057
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ fn fetch_config(rtp: &PathBuf) -> Result<Value> {
|
||||||
.unwrap_or(vec![]),
|
.unwrap_or(vec![]),
|
||||||
].iter()
|
].iter()
|
||||||
.flatten()
|
.flatten()
|
||||||
.filter(|path| path.exists())
|
.filter(|path| path.exists() && path.is_file())
|
||||||
.map(|path| {
|
.map(|path| {
|
||||||
let content = {
|
let content = {
|
||||||
let mut s = String::new();
|
let mut s = String::new();
|
||||||
|
|
Loading…
Reference in a new issue