EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

ftp.getfile

Retrieves a file. The method retrieves files from the FTP server.

method uint ftp.getfile (
   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.
$FTP_BINARYA binary file is downloaded.
$FTP_TEXTA text file is downloaded. This is a default mode.
$FTP_STRAppends zero to the end of received data.

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
)

Parameters

srcname The downloaded file name.
destname A new file name on user's machine.
flag Flags.
$FTP_BINARYA binary file is downloaded.
$FTP_TEXTA text file is downloaded. This is a default mode.
$FTP_CONTINUEProceeds with retrieving.
$FTP_SETTIMESets the same file times as on the FTP server.

Return value

If the function succeeds, the return value is 1. If the function fails, the return value is 0.

Related links

Source