Sftp.TransferType Property
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9448)
TransferType
Gets or sets the data transfer type. Make sure to set the ServerType property to the target OS first!
Declaration
public SftpTransferType TransferType { get; set; }
Property Value
| Type | Description |
|---|---|
| SftpTransferType | The file transfer type. Default is Binary. |
Remarks
This setting applies to
GetFile, PutFile, Upload and Download methods.
It does not apply to GetStream, GetUploadStream and GetDownloadStream methods (those are
always binary).
When this property is set to Ascii and ServerType is set to Unix, Rebex SFTP will do this:
1. When uploading, all Windows-style CRLF end-of-line sequences in the source file are replaced with Unix-style LF sequences.
2. When downloading, all Unix-style LF end-of-line sequences are replaced with CRLF
(any CRLF already in the source data are kept, which means you won't get CRCRLF).