We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5a88c0 commit 05d9113Copy full SHA for 05d9113
1 file changed
whitebox-tools-app/src/tools/mod.rs
@@ -1196,7 +1196,7 @@ impl ToolManager {
1196
.to_str()
1197
.expect("Error reading path string")
1198
.to_string();
1199
- if s.to_lowercase().ends_with(".json") {
+ if s.to_lowercase().ends_with(".json") && !s.to_lowercase().contains("._") { // no hidden files!
1200
let contents = fs::read_to_string(s).expect("Something went wrong reading the file");
1201
let mut v: serde_json::Value = serde_json::from_str(&contents)?;
1202
v["plugin_directory"] = serde_json::json!(plugin_directory);
0 commit comments