Tests if the given directory exists.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public override bool DirectoryExists( string remoteDirectory ) |
Visual Basic |
---|
Public Overrides Function DirectoryExists ( _ remoteDirectory As String _ ) As Boolean |
Visual C++ |
---|
public: virtual bool DirectoryExists( String^ remoteDirectory ) override |
Parameters
- remoteDirectory
- Type: System..::..String
Return Value
true if directory exists and false otherwiseRemarks
The FTP protocol doesn't specify a standard way of testing for the existence of a directory, so
this method tries to change into the directory and assumes that that the directory doesn't
exist if an exception is thrown. The current working directory is restored before the method
returns.