listdir method

Future<List<SftpName>> listdir(
  1. String path
)

List the items of a directory. This is a convenience method wrapping readdir.

Implementation

Future<List<SftpName>> listdir(String path) async {
  final result = <SftpName>[];
  await for (final names in readdir(path)) {
    result.addAll(names);
  }
  return result;
}