Skip to content

Commit 4e096ec

Browse files
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
(cherry picked from commit e098137) Co-authored-by: Ryan Ozawa <[email protected]>
1 parent 2d1128e commit 4e096ec

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
@@ -2372,6 +2372,8 @@ features:
23722372
will fail with an :exc:`OSError` subclass in a number of cases:
23732373

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

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

0 commit comments

Comments
 (0)