How to get a file with <CFFTP>
I am trying to grab a file and move it to the coldfusion server using <CFFTP> The server in which I am trying to grab the file is a sftp server. I am running coldfusion 8. When I run my code, I dont get an error, I just get a blank white screen, yet the file has not been moved. I will post my code below, does anyone know what I am doing wrong?
<!--- Open conncetion with remote sftpserver --->
<cftry>
<cfftp action="open"
connection="ftpServer"
server="server.com"
username = "username"
password = "password"
fingerprint = "11:11:B5:F2:11:AF:C2:E2:31:11:D3:B4:11:83:11:11"
timeout="20"
port="22"
secure = "yes" />
<cfcatch>
<cfset throwFileTransferFailed("Could not open connection. Message: " & cfcatch.Message & ". Detail: " & cfcatch.Detail)>
</cfcatch>
</cftry>
<!--- get the file --->
<cftry>
<cfftp
action="getFile"
connection="ftpServer"
server="server.com"
username="username"
password="password"
remotefile="TEST_20100816.csv"
localfile="C:\WENS_DEV\pdf\"
failIfExists="no">
<cfcatch>
<cfset throwFileTransferFailed("Could not open connection. Message: " & cfcatch.Message & ". Detail: " & cfcatch.Detail)>
</cfcatch>
</cftry>
