Connects to an FTP server, receives a file, then disconnects from the FTP server.
Parameters
Parameter
Description
sServerAddress
The IP address or host name of the FTP server to connect to.
lServerPort
The IP port that the FTP server is listening on (usually 21).
sUserName
The username to log in (usually "anonymous").
sPassword
The password (for anonymous users, usually "guest").
sRemoteFilename
The file on the FTP server to receive. You should specify a path and filename. The path and filename can be relative to the logged in user’s default folder, or can be an absolute path on the remote system.
sLocalFilename
The local path and filename of the file to receive.
bAsciiTransfer
Set to True to receive the file in ASCII mode, or False to receive the file in binary mode.