Winscp 5.1.5 .Net library removes files after downloading
Hi!
I use Powershell with WinSP library ( 5.1.5).
I discovered one strange thing - method GetFiles for some reasonm removes source files
I've tried to use 2 variants of the command:
$session.GetFiles(($remotePath + $i.Name ), $localPath,"false",$transferOptions).Check()
$session.GetFiles(($remotePath + $i.Name ), $localPath,$transferOptions).Check()
These commands downloads all files from a _folder_ on a FTP server.
Files were downloaded and after that the source folder become removed.
I use Powershell with WinSP library ( 5.1.5).
I discovered one strange thing - method GetFiles for some reasonm removes source files
I've tried to use 2 variants of the command:
$session.GetFiles(($remotePath + $i.Name ), $localPath,"false",$transferOptions).Check()
$session.GetFiles(($remotePath + $i.Name ), $localPath,$transferOptions).Check()
These commands downloads all files from a _folder_ on a FTP server.
Files were downloaded and after that the source folder become removed.