EvotecIT / Transferetto

Small PowerShell module with FTPS/SFTP functionality
MIT License
55 stars 14 forks source link

Connect-FTP -EncryptionMode #20

Closed bastienperez closed 2 years ago

bastienperez commented 2 years ago

Hello, First, thanks for your awesome work! (again)

I have a little issue with Connect FTPS Connect-FTP -EncryptionMode xxx The property EncryptionMode can't be found in the FluentFTP.FtpClient $Client:

C:\Program Files\WindowsPowerShell\Modules\Transferetto\0.0.15\Transferetto.psm1:233 : 28
+     if ($EncryptionMode) { $Client.EncryptionMode = $EncryptionMode }

Connect-FTP -Autoconnect works.

EncryptionMode must be part of config I suppose?

$ftpSession = Connect-FTP -Server 'xxx' -Username 'yyyyy' -Password 'zzz' -AutoConnect

$ftpSession.Config.EncryptionMode
Implicit
PrzemyslawKlys commented 2 years ago

You are right. Since I didn't have tests for this I didn't notice when updating library to newest version. It must have changed at some point. Someone should write ore tests :p

bastienperez commented 2 years ago

Thanks! I will try this fix and let you know 💪.