![]() ![]() LocalDir = "qa_output" ' Mode 0 causes SyncTreeDownload to download all files. RemoteDir = "syncDownloadTest/xml" Dim localDir As String ' It is also possible to use absolute paths. ' The local directory is relative to the current working directory of the process. The remote directory ' is relative to the HOME directory of the SSH user account. ![]() ![]() LastErrorText Exit Sub End If ' Download all the files from the remote directory "syncDownloadTest/xml" ' into our local directory "qa_output" ' Both directories are relative paths. AuthenticatePw( "mySshLogin", "mySshPassword")ĭebug.Print sftp. Dim sftp As New ChilkatSFtp Dim success As Long ' See Global Unlock Sample for sample code. ' This example assumes the Chilkat API to have been previously unlocked. This example uses the SyncTreeDownload method in a non-recursive mode that forces the download of all files, regardless of date/time or size differences. (Visual Basic 6.0) SFTP Download all Files in a Directoryĭemonstrates how to download all files in a remote directory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |