Files
syncthing/lib/fs
Ross Smith II 064213ceb8 fix(fs): check for unsupported error on modern Windows (fixes #10164) (#10165)
### Purpose

Locally, on Windows 11, and on the windows-2025 GitHub runner (go 1.23
and 1.24), the `TestCopyRange` test is failing with `The request is not
supported.`

On windows-2022 and windows-2019:
```go
err == syscall.ENOTSUP
```
worked, but on Windows 11 and windows-2025, we need:
```go
errors.Is(err, errors.ErrUnsupported)
```

### Testing

Tested on Windows 11, windows-2019, windows-2022, and
[windows-2025](https://github.com/rasa/syncthing/actions/runs/15525123437/job/43703630634#step:7:2811).
2025-06-09 07:20:46 +02:00
..
2025-06-06 13:45:44 +02:00
2025-06-06 13:45:44 +02:00
2025-06-06 13:45:44 +02:00
2024-11-19 11:32:56 +01:00
2025-06-06 13:45:44 +02:00
2025-06-06 13:45:44 +02:00
2025-04-09 15:40:25 +02:00
2025-06-06 13:45:44 +02:00
2024-08-10 12:58:20 +01:00
2025-06-06 13:45:44 +02:00
2025-06-06 13:45:44 +02:00
2025-06-06 13:45:44 +02:00