An NDoc Documented Class Library |

# FTPConnection.GetFileInfos Method (String)

Returns the given directory's contents as an array of FTPFile objects.

public virtual FTPFile[] GetFileInfos(
string directory
);

#### Parameters

directory
  Name of directory AND/OR filemask.

#### Return Value

An array of FTPFile objects.

#### Remarks

This method works for Windows and most Unix FTP servers. Please inform EDT about unusual formats (support@enterprisedt.com).

#### See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace | FTPConnection.GetFileInfos Overload List