find method

  1. @override
Future<List<String>> find({
  1. String? glob,
  2. int? limit,
})
override

Finds files whose workspace-relative path matches glob (returns up to limit paths).

Implementation

@override
Future<List<String>> find({String? glob, int? limit}) async {
  final matches = _files.keys.where((p) => matchesGlob(p, glob)).toList()
    ..sort();
  return limit != null && matches.length > limit
      ? matches.sublist(0, limit)
      : matches;
}