# fs.selfExePath: Make the Windows implementation follow symlinks · gitcafe/zig

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

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

Visibility: public

Requested revision: 2c2ecd624ad6d85d005f4728f834c0e3377f8f99

Requested commit: 2c2ecd624ad6d85d005f4728f834c0e3377f8f99

Commit: 2c2ecd624ad6d85d005f4728f834c0e3377f8f99

Tree: ff17bff644b5eac7243df227c51fb78547b60d35

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
fs.selfExePath: Make the Windows implementation follow symlinks

Before, selfExePath would be the path of the symlink on Windows instead of the path of what the symlink points to.

This deprecates fs.selfExePathW since it does not provide a separate use-case over selfExePath (before, the W version could return [:0]u16 directly)

Fixes #16670

```

## Parents

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

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