Skip to content

GH-132566: Add pathlib.Path.info.is_junction()#132569

Draft
barneygale wants to merge 2 commits intopython:mainfrom
barneygale:gh-132566-is-junction
Draft

GH-132566: Add pathlib.Path.info.is_junction()#132569
barneygale wants to merge 2 commits intopython:mainfrom
barneygale:gh-132566-is-junction

Conversation

@barneygale
Copy link
Copy Markdown
Contributor

@barneygale barneygale commented Apr 15, 2025

Add PathInfo.is_junction(), which complements our existing is_dir(), is_file() and is_symlink() methods. This is useful for implementing recursive deletion, where we want to treat directory junctions like symlinks.


📚 Documentation preview 📚: https://cpython-previews--132569.org.readthedocs.build/

Add `PathInfo.is_junction()`, which complements our existing `is_dir()`,
`is_file()` and `is_symlink()` methods. This is useful for implementing
recursive deletion, where we want to treat directory junctions like
symlinks.
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OS-windows stale Stale PR or inactive for long period of time. topic-pathlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant