Differences
This shows you the differences between the selected revisions of the page.
| 2015-02-26 | 2015-12-22 | ||
| suggesting for other tasks (martin) | missing EscapeFileMask (martin) | ||
| Line 53: | Line 53: | ||
| $tempPath = ($env:temp + "\" + $fileInfo.Name) | $tempPath = ($env:temp + "\" + $fileInfo.Name) | ||
| # Download file to temporary directory | # Download file to temporary directory | ||
| - | $transferResult = $session.GetFiles($filePath, $tempPath) | + | $transferResult = $session.GetFiles($session.EscapeFileMask($filePath), $tempPath) |
| # Did the download succeded? | # Did the download succeded? | ||
| if (!$transferResult.IsSuccess) | if (!$transferResult.IsSuccess) | ||