mirror of
https://github.com/python/cpython.git
synced 2024-12-04 15:25:13 +08: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.
13 lines
294 B
Python
13 lines
294 B
Python
"""Object-oriented filesystem paths.
|
|
|
|
This module provides classes to represent abstract paths and concrete
|
|
paths with operations that have semantics appropriate for different
|
|
operating systems.
|
|
"""
|
|
|
|
from ._os import *
|
|
from ._local import *
|
|
|
|
__all__ = (_os.__all__ +
|
|
_local.__all__)
|