]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-28356: Document os.rename() behavior on Windows for differing volumes (GH-27376)
authorRyan Ozawa <ryan.ozawa21@gmail.com>
Mon, 9 Jan 2023 21:43:09 +0000 (13:43 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 21:43:09 +0000 (21:43 +0000)
Doc/library/os.rst

index b06f9bbcd831c2b0a26a0705e862f3bd28d30f2a..fb091176767f7adce581148b7e0ef58d0131f6f8 100644 (file)
@@ -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