---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/sandbox/functions/createPathTranslator.md
---

# Function: createPathTranslator()

```ts
function createPathTranslator(
  root: string,
  fileSystem: SandboxFileSystem,
): PathTranslator;
```

Defined in: [src/batteries/sandbox/paths.ts:58](https://github.com/NHTIO/ADK/blob/v1.20260824.1/src/src/batteries/sandbox/paths.ts#L58)

Create a translator that applies the five-step, workspace-relative path policy.

## Parameters

| Parameter    | Type                                                      |
| ------------ | --------------------------------------------------------- |
| `root`       | `string`                                                  |
| `fileSystem` | [`SandboxFileSystem`](../interfaces/SandboxFileSystem.md) |

## Returns

[`PathTranslator`](../interfaces/PathTranslator.md)
