# windows: Fix FS-related issues \(\#23369\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/04c04e8406c81625cb7c52fb816ed386c754ee41)

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

Visibility: public

Requested revision: 04c04e8406c81625cb7c52fb816ed386c754ee41

Requested commit: 04c04e8406c81625cb7c52fb816ed386c754ee41

Commit: 04c04e8406c81625cb7c52fb816ed386c754ee41

Tree: 74eb2225e15745f8846e28b1568795c63c6e5b15

Author: 张小白

Committer: GitHub

## Message

```
windows: Fix FS-related issues (#23369)

I've noticed an occasional error: `ignoring event C:\some\path\to\file
outside of root path \\?\C:\some\path`. This happens because UNC paths
always fail to match with non-UNC paths during operations like
`strip_prefix` or `starts_with`. To address this, I changed the types of
some key parameters to `SanitizedPath`. With this adjustment, FS events
are now correctly identified, and under the changes in this PR, the
`test_rescan_and_remote_updates` test also passes successfully on
Windows.

Release Notes:

- N/A
```

## Parents

- [8f87b5637af4d4e68fbcf0ecfa0b43a03404f638](https://git.cafe/gitcafe/zed/commit/8f87b5637af4d4e68fbcf0ecfa0b43a03404f638?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/04c04e8406c81625cb7c52fb816ed386c754ee41?format=markdown)
