Returns the given directory's contents and optionally that of its subdirectories
as an array of FTPFile objects.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public FTPFile[] GetFileInfos( string directory, bool includeSubdirectories ) |
Visual Basic |
---|
Public Function GetFileInfos ( _ directory As String, _ includeSubdirectories As Boolean _ ) As FTPFile() |
Visual C++ |
---|
public: array<FTPFile^>^ GetFileInfos( String^ directory, bool includeSubdirectories ) |
Parameters
- directory
- Type: System..::..String
Name of directory AND/OR filemask.
- 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).