getManagedAndUserConditionalRules method
Gets managed and user conditional rules that match the target path.
Implementation
Future<List<MemoryFileInfo>> getManagedAndUserConditionalRules(
String targetPath,
Set<String> processedPaths,
) async {
final result = <MemoryFileInfo>[];
result.addAll(
await _processConditionedMdRules(
targetPath,
_getManagedNeomageRulesDir(),
MemoryType.managed,
processedPaths,
false,
),
);
if (_isSettingSourceEnabled('userSettings')) {
result.addAll(
await _processConditionedMdRules(
targetPath,
_getUserNeomageRulesDir(),
MemoryType.user,
processedPaths,
true,
),
);
}
return result;
}