# ensureWithinOutDir

**Kind:** Function

**Source:** [`src/helper/ssg/utils.ts`](https://github.com/honojs/hono/blob/main/src/helper/ssg/utils.ts#L77)

**Part of:** [Helper](subsystem-src-helper)

## Signature

```ts
function ensureWithinOutDir(outDir: string, filePath: string): void
```

## Parameters

| Name | Type |
|---|---|
| `outDir` | `string` |
| `filePath` | `string` |

**Returns:** `void`

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

- `DEFAULT_OUTPUT_DIR` — `src/helper/ssg/ssg.ts`:27
