File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments