Uh oh!
There was an error while loading. Please reload this page.
GH-73991: Add pathlib.Path.move that can handle rename across FS - #30650
GH-73991: Add pathlib.Path.move that can handle rename across FS#30650oz123 wants to merge 2 commits into
Conversation
b885731 to
b3f4752Compareb3f4752 to
673f1c9Compare
barneygale
left a comment
There was a problem hiding this comment.
I'd prefer metadata=True over copy_function=shutil.copy2, and would like to request a third opinion :-)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9d35c9a to
b20e32fCompareb20e32f to
84157e1CompareUh oh!
There was an error while loading. Please reload this page.
bb1a964 to
29dfb12CompareWith this change, ``pathlib.Path.move`` adds the ability to handle renaming across file system and also preserve metadata when renaming, since ``shutil.move`` using ``shutil.copy2`` is used under the hood.
29dfb12 to
edce418Compare
MaxwellDupre
left a comment
There was a problem hiding this comment.
Ran 462 tests in 3.520s
OK (skipped=137)
Added test passed. Looks ok.
barneygale
commented
Aug 26, 2024
I'm going to close this PR because I've added a (different) implementation of |
oz123
commented
Aug 26, 2024
Thanks for letting me know. I'm happy that the issue is finally resolved. |
With this change,
Pathlib.moveadds the abilityto handle renaming across file system and also preserve metadata
when renaming, since
shutil.moveusingshutil.copy2is usedunder the hood.
https://bugs.python.org/issue46317
https://bugs.python.org/issue46317