fixing bugs
This commit is contained in:
@@ -248,7 +248,7 @@ bool is_folder_included(const std::string& path) {
|
||||
std::lock_guard<std::mutex> lock(settingsMutex); // Lock access to settings variables
|
||||
std::string lower_path=to_lower(path);
|
||||
for (int i = 0; i < included_folders_size; i++) {
|
||||
if (lower_path.find(included_folders[i]) != std::string::npos or matches_pattern(lower_path, disallowed_start_folders[i])) {
|
||||
if ((lower_path.find(included_folders[i]) != std::string::npos) or matches_pattern(lower_path, included_folders[i])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -260,7 +260,7 @@ bool is_folder_excluded(const std::string& path) {
|
||||
std::lock_guard<std::mutex> lock(settingsMutex); // Lock access to settings variables
|
||||
std::string lower_path = to_lower(path);
|
||||
for (int i = 0; i < excluded_folders_size; i++) {
|
||||
if (lower_path.find(excluded_folders[i]) != std::string::npos or matches_pattern(lower_path, disallowed_start_folders[i])) {
|
||||
if ((lower_path.find(excluded_folders[i]) != std::string::npos) or matches_pattern(lower_path, excluded_folders[i])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user