From 7761b14c7ee9ef483bf0b2a0c4ce9b9b87ddee00 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 21 Jan 2023 21:55:55 +0100 Subject: [PATCH] Fix exclusion again (It was the wrong way around) --- src/mapper/mapped_dir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapper/mapped_dir.rs b/src/mapper/mapped_dir.rs index 425bbca..a5490c7 100644 --- a/src/mapper/mapped_dir.rs +++ b/src/mapper/mapped_dir.rs @@ -104,5 +104,5 @@ fn exclude_path(path: &Path) -> bool { let extension = extension.to_string_lossy(); let allowed_extensions = ["exe", "bat", "cmd", "ps1"]; - allowed_extensions.contains(&extension.as_ref()) + !allowed_extensions.contains(&extension.as_ref()) }