IPWorks SFTP 2020 Python Edition

Questions / Feedback?

download Method

Download a RemoteFile from an SFTP server.

Syntax

def download() -> None: ...

Remarks

The remote file specified by remote_file is downloaded to the local file specified by local_file, or it is retrieved through the on_transfer event, if the local_file property is "" (empty string). remote_file is either an absolute path on the server, or a path relative to remote_path.

If there is no SSH session in place, one is automatically created by the component first.

Example (Download a File)


SFTPControl.Localfile = "C:\localfile.txt"
SFTPControl.RemoteFile = "remotefile.txt"
SFTPControl.Download()

SFTPControl.Localfile = "C:\localfile2.txt"
SFTPControl.RemoteFile = "folder/remotefile2.txt"
SFTPControl.Download()

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SFTP 2020 Python Edition - Version 20.0 [Build 8263]