Directory_create - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}}

Notation

Description

Creates a directory with the given name.

Parameters

  • dname: The name of the directory to create.

Return Values

Returns 1 if successful, 0 otherwise. Reasons for failure may include the directory already existing and the path being invalid.

'''Note: '''This function may differ from GameMaker's implementation. In GameMaker if you wanted to create "c:/a/b/c" but the C:/ drive had no directories "a" or "b", it would create them. ENIGMA's implementation may return 0 for failure if the directories "a" and "b" do not already exist.

Example Call

directory_create('d:/enigma');