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

FileTransferClient.UploadAsync Method

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

UploadAsync(String, String, TraversalMode, TransferMethod, ActionOnExistingFiles, Object)

Uploads the specified file or directory hierarchy to the directory on the server. Accepts wildcards.

Declaration
public Task UploadAsync(string localPath, string remoteDirectoryPath, TraversalMode traversalMode, TransferMethod transferMethod, ActionOnExistingFiles existingFileMode, object state = null)
Parameters
Type Name Description
String localPath

The path of the local file or directory.

String remoteDirectoryPath

The path of the remote directory. This cannot be a file.

TraversalMode traversalMode

Traversal mode. Specifies whether the whole hierarchy or files only are transferred.

TransferMethod transferMethod

Specifies whether to copy or move source items.

ActionOnExistingFiles existingFileMode

Specifies the default behavior for files that already exists at the server.

Object state

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

Returns
Type Description
Task
Implements
IFtp.UploadAsync(String, String, TraversalMode, TransferMethod, ActionOnExistingFiles, Object)

UploadAsync(FileSet, String, TransferMethod, ActionOnExistingFiles, Object)

Uploads the specified local files and/or directories to the directory to the server.

Declaration
public Task UploadAsync(FileSet set, string remoteDirectoryPath, TransferMethod transferMethod, ActionOnExistingFiles existingFileMode, object state = null)
Parameters
Type Name Description
FileSet set

A filtering set which specifies remote files and directories to be uploaded.

String remoteDirectoryPath

The path of the remote directory. This cannot be a file.

TransferMethod transferMethod

Specifies whether to copy or move source items.

ActionOnExistingFiles existingFileMode

Specifies the default behavior for files that already exists at the server.

Object state

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

Returns
Type Description
Task
Implements
IFtp.UploadAsync(FileSet, String, TransferMethod, ActionOnExistingFiles, Object)
In This Article
  • UploadAsync(String, String, TraversalMode, TransferMethod, ActionOnExistingFiles, Object)
  • UploadAsync(FileSet, String, TransferMethod, ActionOnExistingFiles, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies