mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
logic update
This commit is contained in:
parent
4316bf7e53
commit
16c4fc857d
@ -215,8 +215,16 @@ public final class FilesSet implements Serializable {
|
||||
|
||||
String ruleName;
|
||||
if (inclusiveRules.isEmpty()) {
|
||||
ruleName = Bundle.FileSet_fileIsMemberOf_noInclusiveRules_ruleName();
|
||||
// in the event there are no rules, return null for no match
|
||||
if (exclusiveRules.isEmpty()) {
|
||||
return null;
|
||||
// in the event there are exclusion rules, rely on those
|
||||
} else {
|
||||
ruleName = Bundle.FileSet_fileIsMemberOf_noInclusiveRules_ruleName();
|
||||
}
|
||||
|
||||
} else {
|
||||
// if there are inclusive rules, at least one should be matched
|
||||
ruleName = null;
|
||||
for (Rule rule : inclusiveRules.values()) {
|
||||
if (rule.isSatisfied(file)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user