Create Directory
Create Directory
Section titled “Create Directory”Type: create-directory · Package: Filesystem Activities v1.0.0 · Output: string
Creates a folder, automatically including all parent folders missing from the path. If the folder already exists, it does nothing (does not crash). Use it to prepare the output structure before writing or moving files.
How it works
Section titled “How it works”Create the path folder. If the path includes intermediate folders that do not exist (C:/salida/2026/junio), it creates them all. If it already existed, it continues without error.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | Path of the folder to create. |
Optional parameters
Section titled “Optional parameters”Ninguno.
Output
Section titled “Output”Returns the path of the folder created, in case you want to capture it into an output variable.
Example
Section titled “Example”Secure the destination folder before saving a report:
Set Variable name = carpeta value = = "C:/reportes/" + today().ToString("yyyy/MM")Create Directory path = = carpetaWrite Excel Sheet path = = pathJoin(carpeta, "ventas.xlsx") data = = ventasRelated activities
Section titled “Related activities”- Write File / Move File — write or move files to the created folder.
- List Files — listr su contenido.