Thanks a lot Martin, I've been torturing google :-) and I was already seeing that I had to change my strategy
- Xeix
$fileInfo
.
$transferResult = $session.GetFiles($remotePath, $localPath, $False, $transferOptions)
foreach ($transfer in $transferResult.Transfers)
{
if ($transfer.Error -eq $Null)
{
$session.MoveFile($transfer.FileName,$Nou)
Write-Host "Upload of $($transfer.FileName) succeeded, moving to backup " + $transfer.FileName + ' Date: ' + [b]$transfer.xxxxxx[/b] + ' Size: ' + [b]$transfer.Size[/b]