---
title: "Create Directory"
description: "The following Invantive Script statement ensures that a folder structure exists."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-script/statements/create-directory
original: https://documentation.invantive.eu/en/docs/invantive-script/statements/create-directory
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

# Syntax
The following Invantive Script statement ensures that a folder structure exists:
```
local create directory "FOLDER-PATH"
```
All folders in the folder path are created when not yet present. No changes are made when a folder structure already completely exists.

# Examples
Create a folder named `c:\temp`:
```
local create directory "c:\temp"
```
Create all elements of the folder structure `c:\temp\step2\step3` using a variable defined using [[Define]]:
```
local define ROOT_PATH "c:\temp\step2\step3"

local create directory "${ROOT_PATH}"
```