FileInfo - Kirix Documentation

Developer Resources

FileInfo

Overview

The FileInfo class provides information about a file, including data about the length of the file and the last modified date/time of the file.

Constructor

FileInfo(filename : String)

Arguments

filename
The filename of the file.

Methods

FileInfo.getLastWriteTime
Returns the last write time of the file.
FileInfo.getLength
Returns the length of the file.

FileInfo.getLastWriteTime

function FileInfo.getLastWriteTime() : Date

Returns

The 'last write time' of the file. Null is returned if an error was encountered.

Description

Calling this method returns the last write time of the file that was specified in the FileInfo constructor when the object was created.

FileInfo.getLength

function FileInfo.getLength() : Number

Returns

The length of the file.

Description

Calling this method returns the length of the file that was specified in the FileInfo constructor when the object was created.