This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhyn0
Recipients docs@python, eryksun, paul.moore, rhyn0, scienidlex, stephan, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-07-26.00:11:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hi all,

This is my first issue so feedback is welcome.

Following @vstinner 's suggestions:
> * os.rename() can fail if source and destination are on two different
file systems
> * Use shutil.move() to support move to a different directory

And from @eryksun :
> ... on Windows the "operation will fail if src and dst are on different filesystems".

Just 2 short lines:
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.

If nothing to change, I will make a PR soon.
Date User Action Args
2021-07-26 00:11:03rhyn0setrecipients: + rhyn0, paul.moore, vstinner, tim.golden, docs@python, zach.ware, eryksun, steve.dower, stephan, scienidlex
2021-07-26 00:11:03rhyn0setmessageid: <>
2021-07-26 00:11:03rhyn0linkissue28356 messages
2021-07-26 00:11:03rhyn0create