_server.makeDir()
Availability:
SmartFoxServer PRO 1.2.1
Usage:
_server.makeDir(path)
Description:
Creates one or more folders.
Properties:
| path | the name of the path to create |
Returns:
True is the dirctory / directories where created.
Example:
Create a directory:
// Creates a new folder at the current path
var path = "newFolder"
var ok = _server.makeDir(path)
if (ok)
trace("New folder ready!")
else
trace("Could not create folder, maybe it already exist!")
// Creates a nested directory structure
var path = "newFolder/nested/one/two/three"
var ok = _server.makeDir(path)
if (ok)
trace("New folders ready!")
else
trace("Could not create folders!")
See also: