---
schema_version: "1"
id: 4f3c491fabeecdd538e4767495eedff73d0ea454e2188b2809bac33a70cf8c3d
title: MUnit Dynamic Directories
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/latest/dynamic-directories.md
canonical_url: https://docs.mulesoft.com/munit/latest/dynamic-directories
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6a2667823ec6e5fcd1050cfac1156ba5de6208ad1c5da9fca5208b4f1cdb826e
description: MuleSoft Documentation Site
release: "3.7"
latest: true
---
---
product: MUnit
version: 3.7
is-latest-version: true
---

# MUnit Dynamic Directories

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

![logo acb active](/mulesoft/current/en-us/_/img/icons/anypoint-code-builder.svg "Anypoint Code Builder")Anypoint Code
Builder

![logo studio active](/mulesoft/current/en-us/_/img/icons/studio.svg "Anypoint Studio")Anypoint Studio

The MUnit dynamic directories feature provides the `munit.temporary.directory` property to create
and manage temporary files and folders during a MUnit test. The temporary directory is deleted
automatically 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/latest/dynamic-ports)
