---
lang: en
title: 'API docs: testlab.testsandbox.mkdir'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/testlab
permalink: /doc/en/lb4/apidocs.testlab.testsandbox.mkdir.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/testlab](./testlab.md) &gt; [TestSandbox](./testlab.testsandbox.md) &gt; [mkdir](./testlab.testsandbox.mkdir.md)

## TestSandbox.mkdir() method

Makes a directory in the TestSandbox

**Signature:**

```typescript
mkdir(dir: string): Promise<void>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

dir


</td><td markdown="1">

string


</td><td markdown="1">

Name of directory to create (relative to TestSandbox path)


</td></tr>
</tbody></table>

**Returns:**

Promise&lt;void&gt;


