ftp.getfile
- method uint ftp.getfile( str filename, buf databuf, uint flag )
- method uint ftp.getfile( str srcname, str destname, uint flag )
Retrieves a file. The method retrieves files from the FTP server.
method uint ftp.getfile (
str filename,
buf databuf,
uint flag
)
str filename,
buf databuf,
uint flag
)
Parameters
filename | The downloaded file name. | ||||||
databuf | The received data buffer. Data are not stored on a drive. | ||||||
flag | Additional flags.
|
Return value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
ftp.getfile
The method retrieves files from the FTP server.
method uint ftp.getfile (
str srcname,
str destname,
uint flag
)
str srcname,
str destname,
uint flag
)
Parameters
srcname | The downloaded file name. | ||||||||
destname | A new file name on user's machine. | ||||||||
flag | Flags.
|
Return value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
Related links | Source |