# Function: snapshotPath()

> **snapshotPath**(`directory`, `gameVersion`): `string`

Defined in: [store.ts:47](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/devtools/src/store.ts#L47)

Builds the conventional file path for a version's snapshot.

## Parameters

### directory

`string`

Snapshot directory

### gameVersion

`string`

Version the snapshot describes

## Returns

`string`

The path to write to or read from
