Back to FlowSsh Documentation

TransferFlags Enumeration

[C/C++]

struct FlowSshC_TransferFlags { enum {
  Binary    = 0x00,
  AutoLf    = 0x01,
  AutoStd   = 0x02,; // SFTPv4+
  Text      = 0x03,; // SFTPv4+
  Resume    = 0x10,
  Overwrite = 0x20,
  Move      = 0x40,
  AutoMkDir = 0x80 }; };

[C#]

public enum TransferFlags
{
  Binary    = 0x00,
  AutoLf    = 0x01,
  AutoStd   = 0x02,; // SFTPv4+
  Text      = 0x03,; // SFTPv4+
  Resume    = 0x10,
  Overwrite = 0x20,
  Move      = 0x40,
  AutoMkDir = 0x80
}

Members

  • Binary: Transfer files without any modifications in SFTP binary mode.
  • AutoLf: When downloading, convert UNIX text files to the Windows format (LF>CRLF). When uploading, convert Windows text files to the UNIX format (CRLF>LF). AutoLf operates in SFTP binary mode (SFTP text mode is available in SFTPv4+).
  • AutoStd: When downloading, use the text hint to determine whether to use Binary or Text mode. If the text hint is unavailable or is holding a guessed value, the file is opened in SFTP binary mode and tested for text (same procedure as AutoLf). If text is detected, the file is re-opened in SFTP text mode (same as Text mode). When uploading Windows text files it is the same as Text mode; for other files it is the same as Binary mode. Requires SFTP version 4 or higher.
  • Text: Transfer files in SFTP text mode. Requires SFTP version 4 or higher.
  • Resume: Resume file download/upload.
  • Overwrite: Overwrite existing file. When both Resume and Overwrite are set, Resume takes precedence.
  • Move: If enabled, the source file will be erased upon a successfully completed transfer.
  • AutoMkDir: Automatically create the missing directory structure for the target file.

Remarks

A bitflag enumeration used with the [ClientSftpChannel]Download and [ClientSftpChannel]Upload requests. It specifies the transfer mode.