ftp_get()

Description:

Download a file from the FTP server.

Syntax:

ftp_get(client,remoteFile,localFile)

Note:

External library function. If the parameter localFile is a relative path, it is relative to the path to the current dfx file.

Options:

@f

Overwrite the local namesake file

Parameters:

client

An FTP client object

remoteFile

A remote file

localFile

A local file

Example:

 

A

 

1

=ftp_client("192.168.75.1":21,"Administrator","admin")

 

2

=ftp_cd(A1,"/WorkingDirectory")

 

3

=ftp_get(A1,"Records.docx","G:/Records_Download.docx")

Download a file from the FTP server

4

>ftp_close(A1)

 

Related functions:

ftp_put()