Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: DeleteChapter 19
Win32 Modules and Extensions
Next: Reference: List
 

Get

$FTP->Get(file, [local, overwrite, flags, context])

Gets the remote FTP file and saves it locally in local. If local is not specified, it will be the same name as file. Returns undef on error. The parameters and their values are:

file

The name of the remote file on the FTP server.

local

The name of the local file to create.

overwrite

If 0, overwrites local if it exists. With any other value, the function fails if the local file already exists. Default is 0.

flags

Additional flags affecting the behavior of the function. None by default.

context

A number to identify this operation if it is asynchronous. See SetStatusCallback and GetStatusCallback for more information on asynchronous operations. None by default.


Previous: Reference: DeletePerl in a NutshellNext: Reference: List
Reference: DeleteBook IndexReference: List