readDirectory method

Future<List<DirectoryEntry>> readDirectory(
  1. String path
)

Returns the entries of the directory at the given path in the repository.

Implementation

Future<List<DirectoryEntry>> readDirectory(
  String path,
) async {
  final request = RequestRepositoryReadDirectory(
    repo: handle,
    path: path,
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponseDirectoryEntries(value: final value): return value;
    default: throw UnexpectedResponse();
  }
}