Differences

This shows you the differences between the selected revisions of the page.

2018-02-20 2018-08-30
5.13 session path methods to remotepath class (martin) AllDirectories needs to be used for the script to make any sense (martin)
Line 13: Line 13:
$mask = "*.txt" $mask = "*.txt"
-$files = $session.EnumerateRemoteFiles($remotePath, $mask, [WinSCP.EnumerationOptions]::None)+$files = $session.EnumerateRemoteFiles( 
 +·············$remotePath, $mask, [WinSCP.EnumerationOptions]::AllDirectories) 
foreach ($fileInfo in $files) foreach ($fileInfo in $files)
{ {

Last modified: by martin