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 result = await _callMap(Op.find, {'glob': ?glob, 'limit': ?limit});
  return (result['paths'] as List?)?.map((e) => '$e').toList() ??
      const <String>[];
}