This is an old revision of the document!
TransferOptions Class
Defines options for file transfers.
This feature will be available only with the next release.
Syntax
Namespace: WinSCP
Advertisement
public sealed class TransferOptions
Constructors
Name | Description |
---|---|
TransferOptions() | Default constructor. |
Properties
Name | Description |
---|---|
string ExcludeMask | Exclude mask. Only one of ExcludeMask and IncludeMask can be set at a time. |
string IncludeMask | Include mask. Only one of ExcludeMask and IncludeMask can be set at a time. |
Permissions Permissions | Permissions to applied to a remote file (used for uploads only). Use default null to keep default permissions. |
bool PreserveTimestamp | Preserve timestamp (set last write time of destination file to that of source file). Defaults to true . |
TransferMode TransferMode | Transfer mode. Possible values are TransferMode.Binary (default), TransferMode.Ascii and TransferMode.Automatic (based on file extension). |
Remarks
Use instance of the class with GetFiles
, PutFiles
or SynchronizeDirectories
.
Advertisement