ComponentSpace FTP Class Library Reference

RemoteDirectory.Exists Method 

Indicate whether the remote directory exists.

[Visual Basic]
Public Function Exists( _
   ByVal pathName As String _
) As Boolean
[C#]
public bool Exists(
   string pathName
);

Parameters

pathName
The remote directory path name.

Return Value

true if the remote directory exists, false otherwise.

Exceptions

Exception Type Condition
FtpException Thrown when the check for remote directory existence fails.

See Also

RemoteDirectory Class | ComponentSpace.Ftp Namespace