Skip to content

Commit e098137

Browse files
authored
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
1 parent 61762b9 commit e098137

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/os.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2467,6 +2467,8 @@ features:
24672467
will fail with an :exc:`OSError` subclass in a number of cases:
24682468

24692469
On Windows, if *dst* exists a :exc:`FileExistsError` is always raised.
2470+
The operation may fail if *src* and *dst* are on different filesystems. Use
2471+
:func:`shutil.move` to support moves to a different filesystem.
24702472

24712473
On Unix, if *src* is a file and *dst* is a directory or vice-versa, an
24722474
:exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised

0 commit comments

Comments
 (0)