-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
pathlib.Path.move() consumes too much disk space #132566
Copy link
Copy link
Open
Labels
performancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
performancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Fields
Give feedbackNo fields configured for issues without a type.
Bug report
Bug description:
pathlib.Path.move()andmove_into()(new in 3.14+) currently perform a complete copy before deleting any source files, which can consume a lot of disk space. It might be better if they removed source files/directories as the copy operation progresses.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
pathlib.Path.info.is_junction()#132569pathlib.Path.move()#133852