Differences

This shows you the differences between the selected revisions of the page.

2014-10-09 2014-11-25
suggest combining -neweronly with -resume (martin) fixing handling of ResumeSupport property (martin)
Line 86: Line 86:
$transferOptions.FileMask = "*>1M" $transferOptions.FileMask = "*>1M"
# -resumesupport=off # -resumesupport=off
-$resumeSupport = New-Object TransferResumeSupport  +$transferOptions.ResumeSupport.State = [WinSCP.TransferResumeSupportState]::Off
-$resumeSupport.State = [WinSCP.TransferResumeSupportState]::Off +
-$transferOptions.ResumeSupport = $resumeSupport+
# Absolute paths + $True for -delete + Two calls for two source parameters # Absolute paths + $True for -delete + Two calls for two source parameters
$transferResult = $session.GetFiles("/home/martinp/*.txt", "d:\web\", $True, $transferOptions) $transferResult = $session.GetFiles("/home/martinp/*.txt", "d:\web\", $True, $transferOptions)

Last modified: by martin