From MiniScript Wiki
Jump to navigation Jump to search

The file.makedir method creates a new directory on disk.


Parameter Name Default Value Meaning
path "" file name, partial path, or absolute path to directory to be created

If given a file name or partial path, it will be interpreted relative to the current working directory (see file.curdir).


If the directory was successfully created, this method returns true (1). Otherwise, it returns false (0). This can happen if the given path is invalid, a file or directory already exists at that location, or any other file-level error occurs.


The following attempts to create a directory called "data" in the current directory.

file.makedir "data"