Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Sftp.GetListAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

GetListAsync(Object)

Begins asynchronous GetList operation. Retrieves the list of files and directories in the current remote directory.

Declaration
public Task<SftpItemCollection> GetListAsync(object state = null)
Parameters
Type Name Description
Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<SftpItemCollection>

Collection of SftpItem values.

GetListAsync(String, Object)

Begins asynchronous GetList operation. Retrieves the list of files and directories in the specified remote directory, or a list of files matching the specified mask.

Declaration
public Task<SftpItemCollection> GetListAsync(string path, object state = null)
Parameters
Type Name Description
String path

The path of the remote directory, or null for current directory. File wildcards masks (such as *.txt) are accepted as well.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<SftpItemCollection>

Collection of SftpItem values.

Remarks

Argument is taken case sensitive if ServerType equals to Unix; case insensitive otherwise.

In This Article
  • GetListAsync(Object)
  • GetListAsync(String, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies