mirror of
https://github.com/python/cpython.git
synced 2026-05-15 17:08:41 -04:00
f09d184821
Check for `ERROR_INVALID_PARAMETER` when calling `_winapi.CopyFile2()` and raise `UnsupportedOperation`. In `Path.copy()`, handle this exception and fall back to the `PathBase.copy()` implementation.