@@ -52,7 +52,7 @@ Directory and files operations
5252
5353 Copy the contents (no metadata) of the file named *src * to a file named
5454 *dst * and return *dst * in the most efficient way possible.
55- *src * and *dst * are path names given as strings.
55+ *src * and *dst * are path-like objects or path names given as strings.
5656
5757 *dst * must be the complete target file name; look at :func: `~shutil.copy `
5858 for a copy that accepts a target directory path. If *src * and *dst *
@@ -92,7 +92,8 @@ Directory and files operations
9292.. function :: copymode(src, dst, *, follow_symlinks=True)
9393
9494 Copy the permission bits from *src * to *dst *. The file contents, owner, and
95- group are unaffected. *src * and *dst * are path names given as strings.
95+ group are unaffected. *src * and *dst * are path-like objects or path names
96+ given as strings.
9697 If *follow_symlinks * is false, and both *src * and *dst * are symbolic links,
9798 :func: `copymode ` will attempt to modify the mode of *dst * itself (rather
9899 than the file it points to). This functionality is not available on every
@@ -108,7 +109,8 @@ Directory and files operations
108109 Copy the permission bits, last access time, last modification time, and
109110 flags from *src * to *dst *. On Linux, :func: `copystat ` also copies the
110111 "extended attributes" where possible. The file contents, owner, and
111- group are unaffected. *src * and *dst * are path names given as strings.
112+ group are unaffected. *src * and *dst * are path-like objects or path
113+ names given as strings.
112114
113115 If *follow_symlinks * is false, and *src * and *dst * both
114116 refer to symbolic links, :func: `copystat ` will operate on
0 commit comments