Differences
This shows you the differences between the selected revisions of the page.
2014-03-25 | 2014-04-25 | ||
Separating words by spaces (Petr) | more appropriate variable name (martin) | ||
Line 193: | Line 193: | ||
# Gel list of files in the directory | # Gel list of files in the directory | ||
- | $files = $session.ListDirectory($remotePath) | + | $directoryInfo = $session.ListDirectory($remotePath) |
# Select the most recent file | # Select the most recent file | ||
$latest = | $latest = | ||
- | $files.Files | | + | directoryInfo.Files | |
Where-Object { -not $_.IsDirectory } | | Where-Object { -not $_.IsDirectory } | | ||
Sort-Object LastWriteTime | | Sort-Object LastWriteTime | |