Differences
This shows you the differences between the selected revisions of the page.
| 2016-05-31 | 2016-05-31 | ||
| replacing !??! pattern with runtime extension option + adding wildcard option + this required future 5.8.4 (martin) | using join-path (martin) | ||
| Line 74: | Line 74: | ||
| Write-Host ("File {0} matches mask, searching contents..." -f $fileInfo.FullName) | Write-Host ("File {0} matches mask, searching contents..." -f $fileInfo.FullName) | ||
| - | $tempPath = ($env:temp + "\" + $fileInfo.Name) | + | $tempPath = (Join-Path $env:temp $fileInfo.Name) |
| # Download file to temporary directory | # Download file to temporary directory | ||
| $transferResult = $session.GetFiles($session.EscapeFileMask($fileInfo.FullName), $tempPath) | $transferResult = $session.GetFiles($session.EscapeFileMask($fileInfo.FullName), $tempPath) | ||