getConditionalRulesForCwdLevelDirectory method

Future<List<MemoryFileInfo>> getConditionalRulesForCwdLevelDirectory(
  1. String dir,
  2. String targetPath,
  3. Set<String> processedPaths
)

Gets conditional rules for a CWD-level directory.

Implementation

Future<List<MemoryFileInfo>> getConditionalRulesForCwdLevelDirectory(
  String dir,
  String targetPath,
  Set<String> processedPaths,
) async {
  final rulesDir = '$dir/.neomage/rules';
  return _processConditionedMdRules(
    targetPath,
    rulesDir,
    MemoryType.project,
    processedPaths,
    false,
  );
}