edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

FTPClientDirDetails Method (String, FTPFileCallback)

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

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

Parameters

dirname
Type: SystemString
Name of directory OR filemask (if supported by the server).
dirListItemCallback
Type: EnterpriseDT.Net.FtpFTPFileCallback

Return Value

Type: 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