SFTP Object
 
Syntax
 
SFTP.DownloadFileByName(remoteFilePath As String, localFilePath As String) As Long
 
Description
Simplified method for downloading files.
The last-modified date/time is only preserved when the PreserveDate property is set to 1. (The default value of PreserveDate is 0.)
 
Important: If the remoteFilePath is an absolute path, then it is a path from the root of the server's filesystem. For example, "/home/joe/someFile.txt". Use a relative path to specify a directory relative to the $HOME directory of the SSH user account. For example, "./someFile.txt".
 
Returns 1 for success, 0 for failure.
 
See Also