List a directory's contents as an array of strings.

Namespace: EnterpriseDT.Net.Ftp.Ssh
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public virtual string[] Dir(
	string dirname,
	bool full
)
Visual Basic
Public Overridable Function Dir ( _
	dirname As String, _
	full As Boolean _
) As String()
Visual C++
public:
virtual array<String^>^ Dir(
	String^ dirname, 
	bool full
)

Parameters

dirname
Type: System..::..String
Name of directory
full
Type: System..::..Boolean
true if detailed listing required, false otherwise.

Return Value

An array of directory listing strings.

Implements

IFileTransferClient..::..Dir(String, Boolean)

Remarks

If full is true then a detailed listing if returned (if available), otherwise just filenames are provided. The detailed listing varies in details depending on OS and SFTP server. Note that a full listing can be used on a file name to obtain information about a file

See Also