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

FTPClientDir(String, Boolean) Method

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

Definition

Namespace: EnterpriseDT.Net.Ftp
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 OR filemask.
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 FTP server. Note that a full listing can be used on a file name to obtain information about a file. The ShowHiddenFiles flag can be used to request that hidden files be returned in the listing. Servers may or may not support this.

See Also