An NDoc Documented Class Library

FTPClient.Dir Method (String, Boolean)

List a directory's contents as an array of strings.

public virtual string[] Dir(
   string dirname,
   bool full
);

Parameters

dirname
Name of directory OR filemask.
full
true if detailed listing required, false otherwise.

Return Value

An array of directory listing strings.

Implements

IFileTransferClient.Dir

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

See Also

FTPClient Class | EnterpriseDT.Net.Ftp Namespace | FTPClient.Dir Overload List