An NDoc Documented Class Library

ExFTPConnection.GetFileInfos Method (String, Boolean)

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

public FTPFile[] GetFileInfos(
   string directory,
   bool includeSubdirectories
);

Parameters

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

Return Value

An array of FTPFile objects.

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

ExFTPConnection Class | EnterpriseDT.Net.Ftp Namespace | ExFTPConnection.GetFileInfos Overload List