Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

isjunction for checking if a given path is a junction #99547

Closed
@csm10495

Description

@csm10495

Feature or enhancement

(A clear and concise description of your proposal.)

Pitch

I’m proposing we add aisjunction method to os.path and ais_junction method topathlib.Path. Both would return True if the given path is a junction. On Posix the API would exist, but would always return False as this tends to be a Windows-only thing.

We have similar logic to check for concepts likeismount,islink, etc. So i figure this would fit in.

Previous discussion

Seehttps://discuss.python.org/t/add-mechanism-to-check-if-a-path-is-a-junction/20952 and then lower downhttps://mail.python.org/archives/list/python-ideas@python.org/thread/KQ7AELTQRLYOXD434GQ2AHNDD23C4CYG/

There didn't seem to be any hard -1s to this proposal.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp