Returns the remote directory content packed in one string.

Namespace: Jscape.Sftp
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public string GetDirListingAsString(
	string filter,
	RegexOptions options
)
Visual Basic
Public Function GetDirListingAsString ( _
	filter As String, _
	options As RegexOptions _
) As String
Visual C++
public:
String^ GetDirListingAsString(
	String^ filter, 
	RegexOptions options
)

Parameters

filter
Type: System..::..String
the file widcard filter
options
Type: System.Text.RegularExpressions..::..RegexOptions
the values to use to set regular expression options.

Return Value

the directory content string

Exceptions

ExceptionCondition
Jscape.Sftp..::..SftpExceptionif an error occurs

See Also