File.mkdir()

Availability

Flash Media Server 2.

Usage

fileObject.mkdir(newDir)

Parameters

newDir A string indicating the name of the new directory. This name is relative to the current File object instance.

Returns

A Boolean value indicating success (true) or failure (false).

Description

Method; creates a directory in the file directory.

Example

The following example creates a logs directory in the myFileObject instance:

if (myFileObject.mkdir("logs")){
    // Do something if a logs directory is created successfully.
}