Skip to content

Commit 839acd0

Browse files
committed
gh-72542: State that os.rename() always fails across filesystems on Windows
1 parent 9a87ce8 commit 839acd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/os.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2767,7 +2767,7 @@ features:
27672767
will fail with an :exc:`OSError` subclass in a number of cases:
27682768

27692769
On Windows, if *dst* exists a :exc:`FileExistsError` is always raised.
2770-
The operation may fail if *src* and *dst* are on different filesystems. Use
2770+
The operation will fail if *src* and *dst* are on different filesystems. Use
27712771
:func:`shutil.move` to support moves to a different filesystem.
27722772

27732773
On Unix, if *src* is a file and *dst* is a directory or vice-versa, an

0 commit comments

Comments
 (0)