]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Jan 2023 21:52:43 +0000 (13:52 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 21:52:43 +0000 (13:52 -0800)
(cherry picked from commit e098137cd3250af05f19380590b8dec79dc5942f)

Co-authored-by: Ryan Ozawa <ryan.ozawa21@gmail.com>
Doc/library/os.rst

index d119e8dc5e84fe2aaa2aadab1d31482e75322a82..759064a6e52e8a381bb09e88a547f2b2c17f09a6 100644 (file)
@@ -2372,6 +2372,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