FTPClientDirDetails Method (String, FTPFileCallback) |
List a directory's contents as an array of FTPFile objects.
Namespace:
EnterpriseDT.Net.Ftp
Assembly:
edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntaxpublic virtual FTPFile[] DirDetails(
string dirname,
FTPFileCallback dirListItemCallback
)
Public Overridable Function DirDetails (
dirname As String,
dirListItemCallback As FTPFileCallback
) As FTPFile()
public:
virtual array<FTPFile^>^ DirDetails(
String^ dirname,
FTPFileCallback^ dirListItemCallback
)
abstract DirDetails :
dirname : string *
dirListItemCallback : FTPFileCallback -> FTPFile[]
override DirDetails :
dirname : string *
dirListItemCallback : FTPFileCallback -> FTPFile[]
Parameters
- dirname
- Type: SystemString
Name of directory OR filemask (if supported by the server). - dirListItemCallback
- Type: EnterpriseDT.Net.FtpFTPFileCallback
Return Value
Type:
FTPFileAn array of
FTPFile objects.
Implements
IFileTransferClientDirDetails(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).
See Also