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

FTPClientDirDetails(String, FTPFileCallback) Method

List a directory's contents as an array of FTPFile objects.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public virtual FTPFile[] DirDetails(
	string dirname,
	FTPFileCallback dirListItemCallback
)

Parameters

dirname  String
Name of directory OR filemask (if supported by the server).
dirListItemCallback  FTPFileCallback
 

Return Value

FTPFile
An array of FTPFile objects.

Implements

IFileTransferClientDirDetails(String, FTPFileCallback)

Remarks

This works for Windows and most Unix FTP servers. Please inform EDT about unusual formats (support@enterprisedt.com). Note that for some servers, this will not work from the parent directory of dirname. You need to ChDir() into dirname and use DirDetails() (with no arguments).

See Also