Sets options for object transfers.
New-WinSCPTransferOption [[-FileMask] <String>] [[-FilePermissions] <FilePermissions>] [-PreserveTimeStamp] [[-State] <TransferResumeSupportState>] [[-Threshold] <Int32>] [[-SpeedLimit] <Int32>] [[-TransferMode] <TransferMode>] [-WhatIf] [-Confirm] [<CommonParameters>]
Sets available options for object transfers between the client and server.
See FileMask for detailed explanation.
Permissions to applied to a remote object (used for uploads only).
Preserve timestamp (set last write time of destination file to that of source file).
Sets what files will be transferred with resume support/to temporary filename. Use TransferResumeSupportState.Default for built-in default (currently all files above 100 KB), TransferResumeSupportState.On for all files, TransferResumeSupportState.Off for no file (turn off) or TransferResumeSupportState.Smart for all files above threshold (see Threshold).
Threshold (in KB) for State.Smart mode.
Limit transfer speed (in KB/s).
Possible values are TransferMode.Binary (default), TransferMode.Ascii and TransferMode.Automatic (based on file extension).
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
New-WinSCPTransferOption is equivalent to New-Object -TypeName WinSCP.TransferOptions.
PS C:\> New-WinSCPTransferOption -PreserveTimeStamp:$false -TransferMode Binary PreserveTimestamp : False FilePermissions : TransferMode : Binary FileMask : ResumeSupport : default SpeedLimit : 0
PS C:\> New-WinSCPTransferOption -FilePermissions (New-WinSCPItemPermission -GroupExecute -OtherRead) PreserveTimestamp : True FilePermissions : -----xr-- TransferMode : Binary FileMask : ResumeSupport : default SpeedLimit : 0