GetFTPExistingFilesAction

 

Gets 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.

 

GetFTPExistingFilesAction (pDevMode As Long, iConnectionID As Integer) As Integer

 

Input value pDevMode:

Handle to the BlackIceDEVMODE.

 

Input value iConnectionID:

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

 

Return value:

The current 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

 

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