native

ezhttp_ftp_download2

Syntax

native EzHttpRequest:ezhttp_ftp_download2(
    const uri[] = "",
    const local_file[] = "",
    const on_complete[] = "",
    EzHttpFtpSecurity:security = EZH_UNSECURE,
    EzHttpOptions:options_id = EzHttpOptions:0
);

Description

Downloads a file from a remote server using FTP by URI.

Parameters

uri The URI to download from. Supports wildcard matching in the remote file name,
for example ftp://user:[email protected]/demos/hltv_demo_*.dem
local_file The local file to save to. If the URI uses wildcard matching
or this argument points to a directory, downloaded files keep their remote names.
on_complete The function to call when the download is complete.
Signature: public on_complete(EzHttpRequest:request_id)
security Member of EzHttpFtpSecurity. The security strategy use for the FTP connection.
Passing any other value raises a native error.
options_id The options to use for the request.

Return

The request handle.