diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 4b249ed92c..2b167260c8 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2292,6 +2292,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 will 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