bpo-28356: Document os.rename() behavior on Windows for differing vol… · python/cpython@e098137 (original) (raw)

Original file line number Diff line number Diff line change
@@ -2467,6 +2467,8 @@ features:
2467 2467 will fail with an :exc:`OSError` subclass in a number of cases:
2468 2468
2469 2469 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.
2470 2472
2471 2473 On Unix, if *src* is a file and *dst* is a directory or vice-versa, an
2472 2474 :exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be raised