mkdir

Synopsis

$ mkdir("directory/subdirectory/...")

Creates the specified directory.

Parameters

"directory/subdirectory/..." - the path to create, will create the paths as needed if one of them doesn't already exist.

Returns

The path if the operation was successful or $null.

Side Effects / Notes

Examples

if (!-exists "/var/www/") { mkdir("/var/www/logs"); mkdir("/var/www/htdocs/misc"); mkdir("/var/www/bin"); }

See Also