Topic "Powershell / .NET assembly / GetFiles always delete files"

Author Message
Guff
[View user's profile]

Joined: 2012-05-31
Posts: 2
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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
It works correctly for me.
Can you set $session.DebugLogPath and post or email me the log?
_________________
Martin Prikryl
Guff
[View user's profile]

Joined: 2012-05-31
Posts: 2
I've send you the log and the code
Did you recieve it?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License