SetFTPExistingFilesAction

 

Sets the Existing Files Action property of the stored FTP connection identified by iConnectionID. This property specifies what should happen if a file with the same name as the uploaded file, already exists on the server.

 

SetFTPExistingFilesAction (pDevMode As Long, iConnectionID As Integer, iValue As Integer) As Boolean

 

Input value pDevMode:

Handle to the BlackIceDEVMODE.

 

Input value iConnectionID:

The ID of the selected FTP connection. The ID can be attained by using the GetFTPConnectionByIndex, GetFTPConnectionByName, GetSelectedFTPConnection or the AddFTPConnection methods.

 

Input value iValue:

The new value of the property. Can be one of the following values:

0: Always overwrite existing files

1: Existing files with different size are to be overwritten

2: Existing files are to be overwritten if they are older than source files. This is strongly discouraged because modification dates are often misreported by FTP and SFTP server, making this mode highly unreliable.

3: Existing files are to be renamed according the pattern "filename[number].extension".

4: Existing files are to be resumed if they are smaller than source files.

5: Existing files are to be always skipped

 

Return value:

True on success, otherwise False.

 

NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.