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

Ftp.GetCurrentDirectoryAsync Method

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

GetCurrentDirectoryAsync(Object)

Begins asynchronous GetCurrentDirectory operation. Gets the absolute path of the current working directory on the remote server.

Declaration
public Task<string> GetCurrentDirectoryAsync(object state = null)
Parameters
Type Name Description
Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

A string containing the absolute path of the current working remote directory.

Implements
IFtp.GetCurrentDirectoryAsync(Object)
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
  • GetCurrentDirectoryAsync(Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies