DirectoryCreate

Creates new directory for specified path

DirectoryCreate( path [, createPath [, ignoreExists ] ] )

Returns: void

Argument Description Default
path
string, required

Absolute path of the directory to be created

createPath
boolean, optional

Create parent directory when not exist

true

ignoreExists
boolean, optional

Pass false (default) to throw an error if the directory already exists, or true to skip the create operation without an error

false

Examples

// This will create parent directory when not exist
  directoryCreate( expandPath('images/uploads'), true, true);

See also