Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jblindsay committed Jun 1, 2021
1 parent d5a88c0 commit 05d9113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whitebox-tools-app/src/tools/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ impl ToolManager {
.to_str()
.expect("Error reading path string")
.to_string();
if s.to_lowercase().ends_with(".json") {
if s.to_lowercase().ends_with(".json") && !s.to_lowercase().contains("._") { // no hidden files!
let contents = fs::read_to_string(s).expect("Something went wrong reading the file");
let mut v: serde_json::Value = serde_json::from_str(&contents)?;
v["plugin_directory"] = serde_json::json!(plugin_directory);
Expand Down

0 comments on commit 05d9113

Please sign in to comment.