FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-127381: pathlib ABCs: remove `PathBase.unlink()` and `rmdir()` by barneygale · Pull Request #127736 · python/cpython · GitHub

/ cpython Public

GH-127381: pathlib ABCs: remove PathBase.unlink() and rmdir() - #127736

Merged
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-127381-unlink
Dec 8, 2024
Merged

GH-127381: pathlib ABCs: remove PathBase.unlink() and rmdir()#127736
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-127381-unlink

Conversation

barneygale commented Dec 8, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Virtual filesystems don't always make a distinction between deleting files and empty directories, and sometimes support deleting non-empty directories in a single operation. Here we remove PathBase.unlink() and rmdir(), leaving _delete() as the sole deletion method, now made abstract. I hope to drop the underscore prefix later on.

Virtual filesystems don't always make a distinction between deleting files
and empty directories, and sometimes support deleting non-empty directories
in a single operation. Here we remove `PathBase.unlink()` and `rmdir()`,
leaving `_delete()` as the sole deletion method, now made abstract. I hope
to drop the underscore prefix later on.
barneygale merged commit 7f8ec52 into python:main Dec 8, 2024
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
…)` (python#127736)

Virtual filesystems don't always make a distinction between deleting files
and empty directories, and sometimes support deleting non-empty directories
in a single operation. Here we remove `PathBase.unlink()` and `rmdir()`,
leaving `_delete()` as the sole deletion method, now made abstract. I hope
to drop the underscore prefix later on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL