-
Notifications
You must be signed in to change notification settings - Fork 30
New WinSCPTransferOption
Sets options for file transfers.
New-WinSCPTransferOption [[-FileMask] <String>] [[-FilePermissions] <FilePermissions>] [-PreserveTimeStamp] [[-State] <TransferResumeSupportState>] [[-Threshold] <Int32>] [[-SpeedLimit] <Int32>] [[-TransferMode] <TransferMode>] [<CommonParameters>]
Sets available options for file transfers between the client and server.
http://winscp.net/eng/docs/file_mask
Required? | false |
Position? | 0 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
Permissions to applied to a remote file (used for uploads only).
Required? | false |
Position? | 1 |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | false |
Preserve timestamp (set last write time of destination file to that of source file). Defaults to true.
Required? | false |
Position? | named |
Default value | false |
Accept pipeline input? | false |
Accept wildcard characters? | false |
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).
Required? | false |
Position? | 2 |
Default value | (New-Object -TypeName WinSCP.TransferResumeSupportState) |
Accept pipeline input? | false |
Accept wildcard characters? | false |
Threshold (in KB) for State.Smart mode.
Required? | false |
Position? | 3 |
Default value | 100 |
Accept pipeline input? | false |
Accept wildcard characters? | false |
Limit transfer speed (in KB/s).
Required? | false |
Position? | 4 |
Default value | 0 |
Accept pipeline input? | false |
Accept wildcard characters? | false |
Possible values are TransferMode.Binary (default), TransferMode.Ascii and TransferMode.Automatic (based on file extension).
Required? | false |
Position? | 5 |
Default value | (New-Object -TypeName WinSCP.TransferMode) |
Accept pipeline input? | false |
Accept wildcard characters? | false |
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
None
Defines options for file transfers.
New-WinSCPTransferOption is equivalent to New-Object -TypeName WinSCP.TransferOptions.
PS C:\> New-WinSCPTransferOption -PreserveTimeStamp:$false -TransferMode BinaryPreserveTimestamp : 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