Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ftp.GetCurrentDirectory Method

Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9147)

GetCurrentDirectory()

Gets the absolute path of the current working directory on the remote server.

Declaration
public string GetCurrentDirectory()
Returns
Type Description
String

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.

In This Article
  • GetCurrentDirectory()
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies