Skip to content

pathlib.Path.move() consumes too much disk space #132566

Open
@barneygale

Description

@barneygale

Bug report

Bug description:

pathlib.Path.move() and move_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagetopic-pathlibtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions