Differences
This shows you the differences between the selected revisions of the page.
2017-10-04 | 2018-02-20 | ||
using variable expansion in strings in powershell (martin) | 5.13 session path methods to remotepath class (martin) | ||
Line 17: | Line 17: | ||
{ | { | ||
Write-Host "Downloading $($fileInfo.FullName) ..." | Write-Host "Downloading $($fileInfo.FullName) ..." | ||
- | $session.GetFiles($session.EscapeFileMask($fileInfo.FullName), $localPath + "\*").Check() | + | $filePath = [WinSCP.RemotePath]::EscapeFileMask($fileInfo.FullName) |
+ | $session.GetFiles($filePath, $localPath + "\*").Check() | ||
} | } | ||
</code> | </code> |