directory_create

Creates a directory with the given name.

Syntax:

directory_create(dname)


Argument Description
dname The name of the directory to create.


Returns: N/A


Description

This function will creates a directory with the given name in the sandboxed local save area.


WARNING! This function may not work as you expect due to GameMaker: Studio being sandboxed! Please see the section on File System Limits for more information.


Example:

if !directory_exists("Games")
   {
   directory_create("Games");
   }

This will check to see if the specified directory exists in the local data folder and, if it does not, it creates it for you.


Back: File Handling
Next: directory_destroy
© Copyright YoYo Games Ltd. 2018 All Rights Reserved