IO::CreateDirectory

IO::CreateDirectory(newDirectory): bool

Creates a new directory and returns TRUE if action was successful. Parent directories are not created.

In server scripts, IO:: functions are available only if server configuration variable NXSL.EnableFileIOFunctions is enabled (change requires server restart). They are always available in scripts run by nxscript.

Table 1. Parameters

newDirectory

String

Directory to be created

Return

TRUE if creation was successful and FALSE if not.

IO::CreateDirectory("/tmp/newDir") // Will create new directory with name "newDir" under folder "tmp"