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

FTPConnectionGetFileInfos(String, FTPFileCallback) Method

Returns the given 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[] GetFileInfos(
	string directory,
	FTPFileCallback dirListCallback
)

Parameters

directory  String
Name of directory AND/OR filemask.
dirListCallback  FTPFileCallback
Callback to notify for each listing item

Return Value

FTPFile
An array of FTPFile objects.

Remarks

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

See Also