Gets the absolute path of the current working directory on the remote server.
Namespace:
Rebex.Net
Assembly:
Rebex.Ftp (in Rebex.Ftp.dll)
Syntax
Visual Basic |
---|
Public Function GetCurrentDirectory As String |
C# |
---|
public string GetCurrentDirectory() |
Return Value
A string containing the absolute path of the current working remote directory.Implements
IFtp..::..GetCurrentDirectory()()()()Remarks
Represents FTP PWD command.
Some servers (e.g. TOPS-20) do not support this method. FtpException with status of FtpExceptionStatus.ProtocolError and code of 550 is thrown if this is the case.