Name
Get
Synopsis
$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
, overwriteslocal
if it exists. With any other value, the function fails if the local file already exists. Default is0
.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
andGetStatusCallback
for more information on asynchronous operations.) None by default.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.