FtpClientConnection.GetWorkingDirectory Method

Definition

Gets the current working directory on the File Transfer Protocol (FTP) server.

public:
 System::String ^ GetWorkingDirectory();
public string GetWorkingDirectory ();
member this.GetWorkingDirectory : unit -> string
Public Function GetWorkingDirectory () As String

Returns

A String that contains the current working directory.

Examples

The following code example shows how to call the GetWorkingDirectory method and store it in a String variable.

string directoryName = ftpClientConnection.GetWorkingDirectory();   
Dim directoryName As String =  ftpClientConnection.GetWorkingDirectory()  

Applies to