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

# 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

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/3.6/dynamic-ports)
