- fixes #44: FTP connection

This commit is contained in:
OCram85 2019-04-09 10:10:36 +02:00
parent 828bd90fa4
commit 4a8898efdc

View File

@ -197,7 +197,7 @@ function Connect-To {
}
try {
$FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams
$Global:WinSCPSession = New-WinSCPSession @FTPSessionOption
$Global:WinSCPSession = New-WinSCPSession -SessionOption $FTPSessionOption
}
catch {
throw "Could not connect to {0} using {1} protocol!" -f $RemoteHost, $Type