Differences
This shows you the differences between the selected revisions of the page.
2014-11-25 | 2014-11-25 | ||
fixing handling of ResumeSupport property (martin) | need to call check after every call (martin) | ||
Line 88: | Line 88: | ||
$transferOptions.ResumeSupport.State = [WinSCP.TransferResumeSupportState]::Off | $transferOptions.ResumeSupport.State = [WinSCP.TransferResumeSupportState]::Off | ||
# 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) | + | # + calling Check on result to emulate "option batch abort" |
- | $transferResult = $session.GetFiles("/home/martinp/*.xml", "d:\web\", $True, $transferOptions) | + | $session.GetFiles("/home/martinp/*.txt", "d:\web\", $True, $transferOptions).Check() |
- | # Throw on any error to emulate "option batch abort" | + | $session.GetFiles("/home/martinp/*.xml", "d:\web\", $True, $transferOptions).Check() |
- | $transferResult.Check() | + | |
</code> | </code> |