GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove `dirs_exist_ok` argument from `pathlib.Path.copy()` · Issue #130608 · python/cpython

Remove dirs_exist_ok argument from pathlib.Path.copy() #130608

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove dirs_exist_ok argument from pathlib.Path.copy()#130608
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-featureA feature request or enhancementA feature request or enhancement

Description

@barneygale
barneygale
opened on Feb 26, 2025
Issue body actions

(Background: pathlib.Path.copy() is new in Python 3.14, so it hasn't been released yet.)

I don't think there's a compelling case to support a dirs_exist_ok argument in the initial version of Path.copy(). Most Python users don't need "copy and merge directory" functionality. Particularly unlucky users might use the wrong source or target path, and perform a large directory tree merge that is difficult to unpick.

We could add this back in later, in response to user demand.

Linked PRs

  • GH-130608: Remove dirs_exist_ok argument from pathlib.Path.copy() #130610

Activity

  1. barneygale
    added
    topic-pathlib
    on Feb 26, 2025
  2. barneygale
    added a commit that references this issue on Feb 26, 2025

    pythonGH-130608: Remove `dirs_exist_ok` argument from `pathlib.Path.c…

    3398e65
  3. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    type-featureA feature request or enhancementA feature request or enhancement
    on Feb 28, 2025
  4. barneygale
    added a commit that references this issue on Feb 28, 2025

    GH-130608: Remove `dirs_exist_ok` argument from `pathlib.Path.copy()` (…

    b545450
  5. barneygale
    closed this as completedon Feb 28, 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

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlibtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.