expression.TransferIfFileExistsDefault As DestinationFileExistsOption
expression.TransferIfFileExistsDefault As DestinationFileExistsOption
This property has no effect on programmatic transfers. If you don't explicitly specify an IfFileExists action when you transfer files programmatically, the transfer fails if the destination file already exists (equivalent to DestinationDestinationFileExistsOption.Cancel).
This property affects transfers under all supported protocols.
For transfers to an HP 3000 host, replaces the data in the destination file, but does not replace the file's attributes (characteristics). Overwriting a smaller file with a larger one can be problematic as new records are not allocated to accommodate additional data and only part of the file data is transferred. Use DestinationFileExistsOption.Delete to avoid this problem.
For transfers to a VMS host, replaces only the most recent instance of the destination file.
For transfers to a UNIX host, preserves existing symbolic links to the host file.
If you send a PC file to a VMS host using the DestinationFileExistsOption.Purge option, existing versions of the file on the host are purged following the transfer. For example, if you send NOTES.TXT to the host, and NOTES.TXT;2 and NOTES.TXT;3 already exist, a successful transfer results in a single file on the host called NOTES.TXT;4.
When transferring to the PC, this option deletes the specified file on the PC (if it exists) and a new file is created.