---
lang: en
title: 'API docs: testlab.testsandboxoptions.subdir'
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.testsandboxoptions.subdir.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/testlab](./testlab.md) &gt; [TestSandboxOptions](./testlab.testsandboxoptions.md) &gt; [subdir](./testlab.testsandboxoptions.subdir.md)

## TestSandboxOptions.subdir property

The `subdir` controls if/how the sandbox creates a subdirectory under the root path. It has one of the following values:

- `true`<!-- -->: Creates a unique subdirectory. This will be the default behavior. - `false`<!-- -->: Uses the root path as the target directory without creating a subdirectory. - a string such as `sub-dir-1`<!-- -->: creates a subdirectory with the given value.

<b>Signature:</b>

```typescript
subdir: boolean | string;
```

