List a directory's contents as an array of FTPFile objects.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0
Syntax
C# |
---|
public virtual FTPFile[] DirDetails( string dirname ) |
Visual Basic |
---|
Public Overridable Function DirDetails ( _ dirname As String _ ) As FTPFile() |
Visual C++ |
---|
public: virtual array<FTPFile^>^ DirDetails( String^ dirname ) |
Parameters
- dirname
- Type: System..::..String
Name of directory OR filemask (if supported by the server).
Return Value
An array of FTPFile objects.Implements
IFileTransferClient..::..DirDetails(String)
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).