listSync method

  1. @override
List<String> listSync(
  1. String path, {
  2. bool recursive = false,
})
override

Implementation

@override
List<String> listSync(String path, {bool recursive = false}) {
  final dir = Directory(resolve(path));
  if (!dir.existsSync()) return [];
  return dir
      .listSync(recursive: recursive)
      .map((entity) => entity.path)
      .toList();
}