edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

SSHSCPClientDir(String, Boolean) Method

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

Definition

Namespace: EnterpriseDT.Net.Ftp.Ssh
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public virtual string[] Dir(
	string dirname,
	bool full
)

Parameters

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

Return Value

String
An array of directory listing strings.

Implements

IFileTransferClientDir(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