mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
Clarify that shutil's copy functions can accept path-like values (GH-15141)
(cherry picked from commit 9488a5289d
)
Co-authored-by: Boris Verhovsky <boris.verk@gmail.com>
This commit is contained in:
parent
5731172bb1
commit
0468a85cc4
2 changed files with 7 additions and 4 deletions
|
@ -330,7 +330,8 @@ def copystat(src, dst, *, follow_symlinks=True):
|
|||
Copy the permission bits, last access time, last modification time, and
|
||||
flags from `src` to `dst`. On Linux, copystat() also copies the "extended
|
||||
attributes" where possible. The file contents, owner, and group are
|
||||
unaffected. `src` and `dst` are path names given as strings.
|
||||
unaffected. `src` and `dst` are path-like objects or path names given as
|
||||
strings.
|
||||
|
||||
If the optional flag `follow_symlinks` is not set, symlinks aren't
|
||||
followed if and only if both `src` and `dst` are symlinks.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue