Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guff

I've send you the log and the code
Did you recieve it?
martin

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?
Guff

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