mirror of https://github.com/python/cpython
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
This commit is contained in:
parent
61762b9387
commit
e098137cd3
|
@ -2467,6 +2467,8 @@ features:
|
|||
will fail with an :exc:`OSError` subclass in a number of cases:
|
||||
|
||||
On Windows, if *dst* exists a :exc:`FileExistsError` is always raised.
|
||||
The operation may fail if *src* and *dst* are on different filesystems. Use
|
||||
:func:`shutil.move` to support moves to a different filesystem.
|
||||
|
||||
On Unix, if *src* is a file and *dst* is a directory or vice-versa, an
|
||||
:exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised
|
||||
|
|
Loading…
Reference in New Issue