SftpClient ListDirectory Method SSH .NET Client Library Documentation
Retrieves list of files in remote directory.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public IEnumerable<SftpFile> ListDirectory(
	string path,
	Action<int> listCallback = null
)

Parameters

path
Type: OnlineSystem String
The path.
listCallback (Optional)
Type: OnlineSystem Action OnlineInt32 
The list callback.

Return Value

List of directory entries
Exceptions

See Also