Powershell / .NET assembly / GetFiles always delete files

Advertisement

Guff
Joined:
Posts:
2

Powershell / .NET assembly / GetFiles always delete files

Version : WinSCP 5.0.7 beta
Using powershell

I try
$transferResult = $session.GetFiles($remotePath, $localPath, $false)
Result : it delete the files on the remotePath

I try
$transferResult = $session.GetFiles($remotePath, $localPath)
Result : it delete the files on the remotePath

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Powershell / .NET assembly / GetFiles always delete files

It works correctly for me.
Can you set $session.DebugLogPath and post or email me the log?
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum