Skip to content

Commit 3335e89

Browse files
committed
Update shutil.move documentation
1 parent 9f3e372 commit 3335e89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/library/shutil.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,8 @@ Directory and files operations
394394
*src* and the destination, and will be used to copy *src* to the destination
395395
if :func:`os.rename` cannot be used. If the source is a directory,
396396
:func:`copytree` is called, passing it the *copy_function*. The
397-
default *copy_function* is :func:`copy2`. Using :func:`~shutil.copy` as the
398-
*copy_function* allows the move to succeed when it is not possible to also
399-
copy the metadata, at the expense of not copying any of the metadata.
397+
default *copy_function* is :func:`copy2`. Any copy function with a signature
398+
compatible with copy2() can be used (for instance, :func:`~shutil.copy`).
400399

401400
.. audit-event:: shutil.move src,dst shutil.move
402401

0 commit comments

Comments
 (0)