An NDoc Documented Class Library

ExFTPConnection.GetFileInfos Method (String, String, Boolean)

Returns the files in the given directory that match the wildcard, and optionally that of its subdirectories.

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

Parameters

directory
Name of directory AND/OR filemask.
wildcard
Wildcard filter (not supported on all servers)
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