edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Returns the files in the given directory that match the wildcard, and optionally that of its subdirectories.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public FTPFile[] GetFileInfos(
	string directory,
	string wildcard,
	bool includeSubdirectories
)
Visual Basic
Public Function GetFileInfos ( _
	directory As String, _
	wildcard As String, _
	includeSubdirectories As Boolean _
) As FTPFile()
Visual C++
public:
array<FTPFile^>^ GetFileInfos(
	String^ directory, 
	String^ wildcard, 
	bool includeSubdirectories
)

Parameters

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