User Guide
File class 75
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.
}
File.mode
Availability
Flash Media Server 2.
Usage
fileObject.mode
Description
Property (read-only); the mode of an open file. It can be different from the mode parameter
that was passed to open the file if you have repeating attributes (for example,
"read, read")
or if some attributes were ignored. The property is
undefined if the file is closed.
See also
File.open()