GetFile() does nothing - WeOnlyDo Discussion board

GetFile() does nothing (wodSFTP / wodSFTP.NET / wodSFTPdll)

by EMRDeveloper, Friday, September 02, 2011, 18:37 (4831 days ago)

VB.Net, Visual Studio 2008, .Net Framework 3.5 SP1,
SFTP DLL version 3.3.8.94

I can connect to a SFTP server and list files successfully, but when I go to download with GetFile(), nothing is downloaded. No error message. If I set the .Blocking property to True, the GetFile() command goes into an infinite loop. I've tried using several different directories for the local path, removing the / from the remote path, and setting the local and remote path before calling GetFile.

The file is a small .RMT file - I've tried binary and ASCII mode.

Code:

Dim WithEvents sftp1 As WeOnlyDo.Client.SFTP
sftp1 = New WeOnlyDo.Client.SFTP
sftp1.LicenseKey = <details removed>
sftp1.Port = 22
sftp1.Hostname = Me.HostName
sftp1.Login = Me.UserName
sftp1.Password = Me.Password
sftp1.Timeout = 1500
sftp1.Connect()

sftp1.GetFile( C: , CurDir & / & FileName)

(I see that the formatting of this forum removed the backslash after C: )


Complete thread: