standard.net.ftp.FtpSize

FtpSize is available since version 1.0.

Prototype:

number FtpSize(string path, number mode, number connection_handle)

Parameters

path
the ftp file path
mode
the ftp mode: FTPLIB_ASCII or FTPLIB_IMAGE
connection_handle
the connection handle as returned by FtpConnect.

Description:

Get the size of a remote file.

Return value:

Returns the file size, or -1 if failed.