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

Ftp.Upload Method

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

Upload(String, String)

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

Declaration
public void Upload(string localPath, string remoteDirectoryPath)
Parameters
Type Name Description
String localPath

The path (with or without wildcards) of the local file or directory.

String remoteDirectoryPath

The path of the remote directory. This must be a directory.

Implements
IFtp.Upload(String, String)

Upload(String, String, TraversalMode)

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

Declaration
public void Upload(string localPath, string remoteDirectoryPath, TraversalMode traversalMode)
Parameters
Type Name Description
String localPath

The path (with or without wildcards) of the local file or directory.

String remoteDirectoryPath

The path of the remote directory. This must be a directory.

TraversalMode traversalMode

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

Implements
IFtp.Upload(String, String, TraversalMode)

Upload(String, String, TraversalMode, TransferMethod, ActionOnExistingFiles)

Uploads the specified local file or directory hierarchy to the directory on the FTP server. Accept wildcards.

Declaration
public void Upload(string localPath, string remoteDirectoryPath, TraversalMode traversalMode, TransferMethod transferMethod, ActionOnExistingFiles existingFileMode)
Parameters
Type Name Description
String localPath

The path (with or without wildcards) 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.

Implements
IFtp.Upload(String, String, TraversalMode, TransferMethod, ActionOnExistingFiles)

Upload(FileSet, String)

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

Declaration
public void Upload(FileSet set, string remoteDirectoryPath)
Parameters
Type Name Description
FileSet set

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

String remoteDirectoryPath

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

Implements
IFtp.Upload(FileSet, String)

Upload(FileSet, String, TransferMethod, ActionOnExistingFiles)

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

Declaration
public void Upload(FileSet set, string remoteDirectoryPath, TransferMethod transferMethod, ActionOnExistingFiles existingFileMode)
Parameters
Type Name Description
FileSet set

A filtering set which specifies local 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.

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