Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > File class > File.mkdir() | |||
Flash Media Server 2.
fileObject.mkdir(newDir)
newDir A string indicating the name of the new directory. This name is relative to the current File object instance.
A Boolean value indicating success (true) or failure (false).
Method; creates a directory in the file directory.
The following example creates a logs directory in the myFileObject instance:
if (myFileObject.mkdir("logs")){
// Do something if a logs directory is created successfully.
}