Table of Contents

Enum FtpRemoteExists

Namespace
FluentFTP
Assembly
FluentFTP.dll

Defines the behavior for uploading/downloading files that already exist

public enum FtpRemoteExists
Extension Methods

Fields

AddToEnd = 7

Append the local file to the end of the remote file.

AddToEndNoCheck = 2

Append the local file to the end of the remote file, but don't check if it exists and add missing data. This might be required if you don't have permissions on the server to list files in the folder. Only use this if you are SURE that the file does not exist on the server otherwise it can cause the UploadFile method to hang due to filesize mismatch.

[Obsolete("Append is now renamed to Resume to better reflect its behaviour. If you instead want to append the local file to the END of the remote file without resuming, then use AddToEnd.", true)] Append = 8

Append is now renamed to Resume. Alternatively you can use AddToEnd.

NoCheck = 0

Do not check if the file exists. A bit faster than the other options. Only use this if you are SURE that the file does not exist on the server. Otherwise it can cause the UploadFile method to hang due to filesize mismatch.

Overwrite = 4

Overwrite the file if it exists. This will delete the file if it exists, and then perform a fresh upload. It is most reliable way of performing an overwrite and supported on all FTP servers. If you want direct overwriting, use OverwriteInPlace.

OverwriteInPlace = 5

Overwrite the file if it exists, by directly copying the file data over the previous file. This mode retains file permissions on the FTP server, which are otherwise lost when using the Overwrite mode.

Resume = 6

Resume uploading by appending to the remote file if it exists. It works by checking the remote file length and adding the missing data.

ResumeNoCheck = 1

Resume uploading by appending to the remote file, but don't check if it exists and add missing data. This might be required if you don't have permissions on the server to list files in the folder. Only use this if you are SURE that the file does not exist on the server otherwise it can cause the UploadFile method to hang due to filesize mismatch.

Skip = 3

Skip the file if it exists, without any more checks.