TransferEventArgs.Transfers is null when using WinSCP.Session.PutFiles for folders.
When i use the the WinSCP.Session.PutFiles() method to transfer a folder, the TransferEventArgs.Transfers property is null. It seems to work fine with a file.
i would like to use the $results.FileName and $results.Destination for other things.
thanks.
_________________
https://github.com/dotps1
$so = New-Item -TypeName WinSCP.SessionOptions $so.HostName = 'locallhost' $so.UserName = 'Guest' $so.Protocol = 'Ftp' $s = New-Item -TypeName WinSCP.Session $s.Open($so) $results = $s.PutFiles('C:\TempFolder', './') PS C:\> $results Transfers Failures IsSuccess --------- -------- --------- {} {} True
i would like to use the $results.FileName and $results.Destination for other things.
thanks.
_________________
https://github.com/dotps1