listFolder method

  1. @override
Future<List<FileSystemEntityInfo>> listFolder(
  1. String path
)
override

Lists the contents of a folder (files and subfolders).

Implementation

@override
Future<List<FileSystemEntityInfo>> listFolder(String path) async {
  final List entities = await methodChannel.invokeMethod('listFolder', {
    'path': path,
  });
  return entities
      .map((e) => FileSystemEntityInfo.fromMap(Map<String, dynamic>.from(e)))
      .toList();
}