> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Windows path length and updates

> Avoid the 260-character Windows path limit when the launcher downloads delta updates.

Windows limits file paths to 260 characters. That can be a problem when the launcher uses delta update paths with a long install folder, for example:

```text theme={null}
C:\Program Files (x86)\Llama Games Inc\Farm Studios\LlamaCraft - The Wrath of Llama Neeson\livestaging\gameclient
```

During a delta update, the DIRECT 6 launcher adds temporary folders to the install path by default. One is named with the release's SHA-256 ID, and the `.solidpiece` files inside it are also named with SHA-256 hashes:

```text theme={null}
C:\Program Files (x86)\Llama Games Inc\Farm Studios\LlamaCraft - The Wrath of Llama Neeson\livestaging\gameclient\pending\ebe59380b6623947c17858912919ff24317247ac0f1ce5c884419e37b4be9529\145c164e6e23a6849a317dc740aa57350a406639c9d94419f556c3e22d91264b.solidpiece
```

That's 263 characters. DIRECT 7 and newer handle this limit in code. In DIRECT 6, shorten the temporary paths with one or both of the options below.

## Move the pending folder

The default workflow puts the pending folder in the install folder:

```yaml theme={null}
updateSync:
  type: repositorySync
  status: UI_Updating
  repository: "{repositoryName}"
  catalog: "{repositoryCatalogUrl}"
  alias: "{repositoryAliasUrl}"
  title: "{repositoryTitle}"
  metafile: "{installDirectory}{repositoryMetafile}.json"
  local:
    type: file
    path: "{installDirectory}"
  pending:
    type: filePiece
    path: "{installDirectory}pending"
```

Use a macro such as `{commonAppData}` instead, which is `C:\ProgramData\` on Windows:

```yaml theme={null}
pending:
  type: filePiece
  path: "{commonAppData}Farm Studios{pathSlash}temp"
```

The temporary path becomes `C:\ProgramData\Farm Studios\temp\`. The folder is deleted when the update finishes. Leave `local`, where game files are written, as it is. For more macros, see [Core expandable strings](https://docs.directgvr.com/reference/client-workflow-engine/core-expandable-strings.md).

## Remove the SHA-256 temporary folder

Set `deltaFormat` and `pieceFormat` in the `pending` section of your `repositorySync` tasks to drop the release ID folder from the path.

> [!WARNING]
>
> Use the `{TargetDigest}` macro for both, or files can collide during an update.

```yaml theme={null}
updateSync:
  type: repositorySync
  status: UI_Updating
  repository: "{repositoryName}"
  catalog: "{repositoryCatalogUrl}"
  alias: "{repositoryAliasUrl}"
  title: "{repositoryTitle}"
  metafile: "{installDirectory}{repositoryMetafile}.json"
  local:
    type: file
    path: "{installDirectory}"
  pending:
    type: filePiece
    path: "{commonAppData}Farm Studios{pathSlash}temp"
    deltaFormat: "{TargetDigest}.solidpiece"
    pieceFormat: "{TargetDigest}.solidpiece"
```

With both changes, the temporary path is 109 characters:

```text theme={null}
C:\ProgramData\Farm Studios\temp\145c164e6e23a6849a317dc740aa57350a406639c9d94419f556c3e22d91264b.solidpiece
```

Test workflow changes like these to confirm the paths are short enough.

## Related

* [Create delta update paths](https://docs.directgvr.com/release-automation/create-delta-update-paths.md)
* [Tasks](https://docs.directgvr.com/reference/client-workflow-engine/tasks.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.