User Guide

66 Server-Side ActionScript Language Reference
Property summary for the File class
Property Description
File.canAppend Read-only; a Boolean value indicating whether a file was
open for appending (
true) or not (false).
File.canRead Read-only; a Boolean value indicating whether a file can be
read (
true) or not (false).
File.canReplace Read-only; a Boolean value indicating whether a file was
opened with the replace flag enabled (
true) or not (false).
File.canWrite Read-only; a Boolean value indicating whether you can write
to a file (
true) or not (false).
File.creationTime Read-only; a Date object containing the time the file was
created.
File.exists Read-only; a Boolean value indicating whether the file or
directory exists (
true) or not (false).
File.isDirectory Read-only; a Boolean value indicating whether the file is a
directory (
true) or not (false).
File.isFile Read-only; a Boolean value indicating whether the file is a
regular data file (
true) or not (false).
File.isOpen Read-only; a Boolean value indicating whether the file has
been successfully opened and is still open (
true) or not
(
false).
File.lastModified Read-only; a Date object containing the time the file was last
modified.
File.length Read-only; for a directory, the number of files in the directory,
not counting the current directory and parent directory
entries; for a file, the number of bytes in the file.
File.mode Read-only; the mode of an open file.
File.name Read-only; a string indicating the name of the file.
File.position The current offset in the file.
File.type Read-only; a string specifying the type of data or encoding
used when a file is opened.