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

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,552
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?

Reply with quote

Advertisement

You can post new topics in this forum