25.124. MKDIR directory_name

[<<<] [>>>]

This command creates a new directory. If it is needed then the command attempts to create all directories automatically that are needed to create the final directory. For example if you want to create public_html/cgi-bin but the directory public_html does not exist then the command

MKDIR "public_html/cgi-bin"

will first create the directory public_html and then cgi-bin under that directory.

If the directory can not be created for some reason an error is raised.

This is not an error if the directory does already exist.

You need not call this function when you want to create a file using the command OPEN. The command OPEN automatically creates the needed directory when a file is opened to be written.

The created directory can be erased calling the command DELETE or calling the dangerous command DELTREE.

[<<<] [>>>]