◐ Shell
clean mode source ↗

GH-73991: Support copying directory symlinks on older Windows by barneygale · Pull Request #120807 · python/cpython

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.

eryksun

eryksun

@barneygale

noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request

Jul 11, 2024
…ython#120807)

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.

estyxx pushed a commit to estyxx/cpython that referenced this pull request

Jul 17, 2024
…ython#120807)

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.