mirror of
https://github.com/python/cpython.git
synced 2024-11-24 00:38:00 +01:00
a6644d4464
Rename `pathlib.Path.copy()` to `_copy_file()` (i.e. make it private.) Rename `pathlib.Path.copytree()` to `copy()`, and add support for copying non-directories. This simplifies the interface for users, and nicely complements the upcoming `move()` and `delete()` methods (which will also accept any type of file.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
13 lines
310 B
Python
13 lines
310 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 pathlib._abc import *
|
|
from pathlib._local import *
|
|
|
|
__all__ = (_abc.__all__ +
|
|
_local.__all__)
|