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

Ftp.ChangeDirectoryAsync Method

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

ChangeDirectoryAsync(String, Object)

Begins asynchronous ChangeDirectory operation. Changes the current working directory on the server.

Declaration
public Task ChangeDirectoryAsync(string remotePath, object state = null)
Parameters
Type Name Description
String remotePath

Pathname of the directory to change to.

Object state

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

Returns
Type Description
Task
Implements
IFtp.ChangeDirectoryAsync(String, Object)
Remarks

Implemented using FTP CWD command for pathnames not equal to ".." and CDUP command for ".." pathnames. "." pathnames are ignored.

Caution: some uncommon servers do not use a slash as a directory separator. Do not use slashes in the path to remain compatible with such servers.

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