List a directory's contents as an array of strings.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0
Syntax
C# |
---|
public virtual string[] Dir( string dirname, bool full ) |
Visual Basic |
---|
Public Overridable Function Dir ( _ dirname As String, _ full As Boolean _ ) As String() |
Visual C++ |
---|
public: virtual array<String^>^ Dir( String^ dirname, bool full ) |
Parameters
- dirname
- Type: System..::..String
Name of directory OR filemask.
- full
- Type: System..::..Boolean
true if detailed listing required, false otherwise.
Return Value
An array of directory listing strings.Implements
IFileTransferClient..::..Dir(String, Boolean)
Remarks
If full is true then a detailed
listing if returned (if available), otherwise just filenames are provided.
The detailed listing varies in details depending on OS and
FTP server. Note that a full listing can be used on a file
name to obtain information about a file. The ShowHiddenFiles flag
can be used to request that hidden files be returned in the listing. Servers may
or may not support this.