Routines (alphabetical) > Routines: F > FILE_MKDIR

# FILE_MKDIR

The FILE_MKDIR procedure creates a new directory, or directories, with the default access permissions for the current process.

Note: Use the FILE_CHMOD procedure to alter access permissions.

If a specified directory has non-existent parent directories, FILE_MKDIR automatically creates all the intermediate directories as well.

## Examples

To create a subdirectory named `moose` in the current working directory:

FILE_MKDIR, 'moose'

## Syntax

FILE_MKDIR, File1 [,... FileN] [, /NOEXPAND_PATH]

## Arguments

### FileN

A scalar or array of directory names to be created, one name per string element. Directories must be specified in the native syntax for the current operating system.

## Keywords

### NOEXPAND_PATH

Set this keyword to cause FILE_MKDIR to use the File argument exactly as specified, without applying the usual file path expansion.

## Version History

5.4 | Introduced

## See Also