# Package.Fetch: wrap operations involving tmp_directory in a block · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8c6b0271cc55d4c9ae2793340419df3fd3d2c1d7)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8c6b0271cc55d4c9ae2793340419df3fd3d2c1d7

Requested commit: 8c6b0271cc55d4c9ae2793340419df3fd3d2c1d7

Commit: 8c6b0271cc55d4c9ae2793340419df3fd3d2c1d7

Tree: 34e2c7dacf2a90bca7422b08a4f8321fd09c0af0

Author: Krzysztof Wolicki

Committer: Andrew Kelley

## Message

```
Package.Fetch: wrap operations involving tmp_directory in a block
This makes tmp_directory close before calling renameTmpIntoCache which fixes occurences of those AccessDenied errors that aren't synonymous with PathAlreadyExists on Windows

```

## Parents

- [4e188dd66c289a5a6f1e0438360111d5c20a761e](https://git.cafe/gitcafe/zig/commit/4e188dd66c289a5a6f1e0438360111d5c20a761e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8c6b0271cc55d4c9ae2793340419df3fd3d2c1d7?format=markdown)
