local_file Property
The path to a local file for download/upload. If the file exists, it is overwritten.
Syntax
def get_local_file() -> str: ... def set_local_file(value: str) -> None: ...
local_file = property(get_local_file, set_local_file)
Default Value
""
Remarks
This property is used by the upload and download methods to specify the path to a local file to be downloaded/uploaded. See the method descriptions for more information.
Example (Setting LocalFile)
FTPControl.LocalFile =
"C:\localfile.txt"
FTPControl.RemoteFile =
"remotefile.txt"
FTPControl.Download()
FTPControl.LocalFile =
"C:\localfile2.txt"
FTPControl.RemoteFile =
"folder/remotefile2.txt"
FTPControl.Download()