---
schema_version: "1"
id: c2bcf68052b6721855d5789ed47e9837b2c3df8d4594d55a320c6cecba04acf4
title: Dynamic Directories
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/2.3/dynamic-directories.md
canonical_url: https://docs.mulesoft.com/munit/2.3/dynamic-directories
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 63193afe15f9e59969e060d78dc2828b39b3a6c4ff1745379aedf20d466c8fe9
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: MUnit
version: 2.3
---

# Dynamic Directories

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

When managing files and folders during a test, MUnit provides the `munit.temporary.directory`
property to reference a temporary directory. You can create files and folders inside this directory
to use in your tests.

The temporary directory is deleted at the end of each test.

For example, using the file connector, you could configure the working directory as follows:

```xml
<file:config name="tmpDir">
    <file:connection workingDir="${munit.temporary.directory}"/>
</file:config>
```

And then use it to create files/folders inside it:

```xml
<file:create-directory config-ref="tmpDir" directoryPath="example"/>
```

## See Also

- [Dynamic Ports](https://docs.mulesoft.com/munit/2.3/dynamic-ports)
