$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:
The name of the remote file on the FTP server.
The name of the local file to create.
If 0, overwrites local if it exists. With any other value, the function fails if the local file already exists. Default is 0.
Additional flags affecting the behavior of the function. None by default.
A number to identify this operation if it is asynchronous. See
SetStatusCallback
and
GetStatusCallback
for more information on asynchronous operations. None by default.
Copyright © 2001 O'Reilly & Associates. All rights reserved.