Create folder
Create a folder and any missing parents, choosing what happens when it is already there.
Command in the Folder toolkit · id ooa.folder/create · 3 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Folder path. | |
| Fail if exists | Boolean | No | false | Stop when the folder already exists instead of continuing (used when no choice is made for an existing folder). |
| If exists | String | No | When the folder is already there: use it, replace it with an empty one (deleting what is in it), make a numbered one such as Reports (2), or stop with FOLDER.EXISTS. |
Outputs
| Output | Type | What it is |
|---|---|---|
| path | File | Full path of the folder (the numbered name with numbered). |
| created | Boolean | True when a folder was made; false when the existing one is used. |