sftpLs method

Future<List?> sftpLs([
  1. String path = '.'
])

Performs a directory listing using SFTP. Defaults to the current directory.

var array = await client.sftpLs("/home");

Implementation

Future<List?> sftpLs([String path = '.']) async {
  var result = await _channel.invokeMethod('sftpLs', {
    "id": id,
    "path": path,
  });
  return result;
}