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

HttpClientDirDetails(String, Boolean) Method

Returns the given directory's contents and optionally that of its subdirectories as an array of FTPFile objects.

Definition

Namespace: EnterpriseDT.Net.Ftp.Http
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public virtual FTPFile[] DirDetails(
	string directory,
	bool includeSubdirectories
)

Parameters

directory  String
Name of directory AND/OR filemask.
includeSubdirectories  Boolean
Use true if subdirectories are required.

Return Value

FTPFile
An array of FTPFile objects.

Implements

IExFileTransferClientDirDetails(String, Boolean)

Remarks

If includeSubdirectories is set to true then the Children property of FTPFile objects corresponding to subdirectories will contain the content of that subdirectory.

This method works for Windows and most Unix FTP servers. Please inform EDT about unusual formats (support@enterprisedt.com).

See Also