List a directory's contents as an array of FTPFile objects.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public virtual FTPFile[] DirDetails( string dirname, FTPFileCallback dirListItemCallback ) |
Visual Basic |
---|
Public Overridable Function DirDetails ( _ dirname As String, _ dirListItemCallback As FTPFileCallback _ ) As FTPFile() |
Visual C++ |
---|
public: virtual array<FTPFile^>^ DirDetails( String^ dirname, FTPFileCallback^ dirListItemCallback ) |
Parameters
- dirname
- Type: System..::..String
Name of directory OR filemask (if supported by the server).
- dirListItemCallback
- Type: EnterpriseDT.Net.Ftp..::..FTPFileCallback
Return Value
An array of FTPFile objects.Implements
IFileTransferClient..::..DirDetails(String, FTPFileCallback)Remarks
This works for Windows and most Unix FTP servers. Please inform EDT
about unusual formats (support@enterprisedt.com). Note that for some
servers, this will not work from the parent directory of dirname. You
need to ChDir() into dirname and use DirDetails() (with no arguments).