@@ -367,17 +367,17 @@ Directory and files operations
367
367
is moved inside that directory. The destination path in that directory must
368
368
not already exist.
369
369
370
- If the destination already exists but is not a directory, it may be
371
- overwritten depending on :func: `os.rename ` semantics.
370
+ If * dst * already exists but is not a directory, it may be overwritten
371
+ depending on :func: `os.rename ` semantics.
372
372
373
373
If the destination is on the current filesystem, then :func: `os.rename ` is
374
- used. Otherwise, *src * is copied to * dst * using *copy_function * and then
375
- removed. In case of symlinks, a new symlink pointing to the target of * src *
376
- will be created in or as *dst * and *src * will be removed.
374
+ used. Otherwise, *src * is copied to the destination using *copy_function *
375
+ and then removed. In case of symlinks, a new symlink pointing to the target
376
+ of * src * will be created in or as *dst * and *src * will be removed.
377
377
378
- If *copy_function * is given, it must be a callable that takes two arguments
379
- *src * and * dst * , and will be used to copy *src * to * dst * if
380
- :func: `os.rename ` cannot be used. If the source is a directory,
378
+ If *copy_function * is given, it must be a callable that takes two arguments,
379
+ *src * and the destination , and will be used to copy *src * to the destination
380
+ if :func: `os.rename ` cannot be used. If the source is a directory,
381
381
:func: `copytree ` is called, passing it the *copy_function *. The
382
382
default *copy_function * is :func: `copy2 `. Using :func: `~shutil.copy ` as the
383
383
*copy_function * allows the move to succeed when it is not possible to also
0 commit comments