File.isDirectory

Availability

Flash Media Server 2.

Usage

fileObject.isDirectory

Description

Property (read-only); a Boolean value indicating whether the file is a directory (true) or not (false).

A File object that represents a directory has properties that represent the files contained in the directory. These properties have the same names as the files in the directory, as shown in the following example:

myDir = new File("/some/directory");
myFileInDir = myDir.foo;

The following example uses named property lookup to refer to files that do not have valid property names:

mySameFileInDir = myDir["foo"];
myOtherFile = myDir["some long filename with spaces and such"];