Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter TwelveInternet Functions (continued)

FTPGetFileSize Function

Overview

The FTPGetFileSize function returns the size of a remote file in bytes.

Syntax/Parameters

Syntax

int = FTPGetFileSize ( handle hFTP, string target );

Parameters

hFTP

A handle to an FTP connection. Use the FTPOpenConnection function to open a connection.

target

A string that specifies the filename either as a complete path with a root or relative to the working directory.

Return Value

Returns an int as the file size or a -1 on failure. Use the GetLastError and GetLastErrorMessage functions to retrieve additional details.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic