TransferEventArgs.Transfers is null when using WinSCP.Session.PutFiles for folders.
When i use the the
i would like to use the
thanks.
WinSCP.Session.PutFiles()
method to transfer a folder, the TransferEventArgs.Transfers
property is null. It seems to work fine with a file.
$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
$results.FileName
and $results.Destination
for other things.
thanks.