Skip to content

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

Open

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

Activity

  1. added 2 commits that reference this issue on Apr 15, 2025
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Apr 17, 2025
  3. StanFromIreland commented on Apr 18, 2025

    @StanFromIreland
  4. picnixz commented on Apr 18, 2025

    @picnixz
  5. added a commit that references this issue on May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytopic-pathlibtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions