_server.getFileLength()

Availability:

SmartFoxServer PRO 1.2.1

Usage:

_server.getFileLength(fileName)

Description:

Return the size in bytes of a given file.

Properties:

fileName   the path to the file

Returns:

The size of the file expressed in bytes

Example:

Create a directory:

// Check the size of the config.xml file

var size = _server.getFileLength("config.xml")
trace("Config file size is: " + size + " bytes")


See also: