PowerTCP SSH and SFTP for .NET
CopyMode Enumeration




Enumerates the type of copy desired or performed.
Syntax
'Declaration
 
Public Enum CopyMode 
   Inherits System.Enum
'Usage
 
Dim instance As CopyMode
public enum CopyMode : System.Enum 
__value public enum CopyMode : public System.Enum 
public enum class CopyMode : public System.Enum 
Members
MemberDescription
Append Appends the source file to the destination file. Upon completion of a copy operation, indicates the source file was appended to the destination file.
Copy Uploads the entire file, overwriting any existing file. Upon completion of a copy operation, indicates the file was uploaded or overwritten.
Restart Resumes an incomplete transfer or overwrites the destination file if the source file has been changed. Upon completion of a copy operation, indicates the transfer was resumed.
Synchronize If the file timestamps and sizes match, no copy is performed. Otherwise a full copy is performed. Upon completion of a copy operation, indicates no copy was performed.
Remarks
CopyMode.Restart - If the file timestamps match and the source is larger than the destination, then the necessary trailing bytes from the source are appended to the destination. This mode should only be used to restart a failed copy. If the timestamps and sizes match, then no copy is performed (like CopyMode.Synchronize). If the timestamps do not match or the source is smaller than the destination, then a full copy is performed.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Dart.Ssh.CopyMode

See Also

Reference

Dart.Ssh Namespace


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic