Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PathFileYesFolder path.
Fail if existsBooleanNofalseStop when the folder already exists instead of continuing (used when no choice is made for an existing folder).
If existsStringNoWhen 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​

OutputTypeWhat it is
pathFileFull path of the folder (the numbered name with numbered).
createdBooleanTrue when a folder was made; false when the existing one is used.