Unit

ScSFTPUtils

 

type

 TScSFTPRenameFlag = (rfOverwrite, rfAtomic, rfNative);

 TScSFTPRenameFlags = set of TScSFTPRenameFlag;

 

Description

The TScSFTPRenameFlag enumeration indicates behaviour on a file renaming.

 

ValueMeaning
rfOverwriteif this flag is not included, and a file with the specified name already exists, the SSH_FX_FILE_ALREADY_EXISTS error will be returned.
rfAtomicif this flag is included, and the destination file already exists, it is replaced in an atomic fashion. I.e., there is no observable instance in time where the name does not refer either to the old or the new file. rfAtomic implies rfOverwrite.
rfNativeif this flag is included and there is not possible to replace the destination in an atomic fashion, then the SSH_FX_OP_UNSUPPORTED error will be returned.

 

See also

TScSFTPClient.RenameFile

TScSFTPServer.DefaultRenameFile

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support