Message398201
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:03 | rhyn0 | set | recipients:
+ rhyn0, paul.moore, vstinner, tim.golden, docs@python, zach.ware, eryksun, steve.dower, stephan, scienidlex |
2021-07-26 00:11:03 | rhyn0 | set | messageid: <1627258263.48.0.703344040428.issue28356@roundup.psfhosted.org> |
2021-07-26 00:11:03 | rhyn0 | link | issue28356 messages |
2021-07-26 00:11:03 | rhyn0 | create | |
|