Name
MakeDirectory -- make a new directory (V1.5)
Synopsis
MakeDirectory(dir$[, t])
Function
This function creates the new directory specified by dir$. Note that this function won't fail the directory specified by dir$ already exists.

This function can also create more than one directory if required. MakeDirectory() will scan dir$ recursively and create every directory that does not exist yet (Hollywood 1.9 and up).

Starting with Hollywood 10.0, this function accepts an optional table argument which supports the following tags:

Adapter:
This tag allows you to specify one or more filesystem adapters that should be asked to handle the operation. This must be set to a string containing the name(s) of one or more adapter(s). Defaults to the adapter set using SetDefaultAdapter(). See Loaders and adapters for details. (V10.0)

UserTags:
This tag can be used to specify additional data that should be passed to filesystem adapters. If you use this tag, you must set it to a table of key-value pairs that contain the additional data that should be passed to plugins. See User tags for details. (V10.0)

Inputs
dir$
directory to create
t
optional: table containing further options (see above) (V10.0)
Example
MakeDirectory("Test")
The code above creates the new directory "Test" in the current directory.


MakeDirectory("A/B/C/D/E")
The code above creates five new directories inside the current directory.

Show TOC