os.mkdir

The os.mkdir function creates a new directory.

os.mkdir("path")

Parameters

Path is the file system path to be created.

Return Value

True if successful, otherwise nil and an error message.