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 — isjunction for checking if a given path is a junction · Issue #99547 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
isjunction for checking if a given path is a junction#99547
Copy link
Labels
3.12only security fixesonly security fixesOS-windowstopic-pathlibtype-featureA feature request or enhancementA feature request or enhancement

Description

@csm10495
csm10495
opened on Nov 16, 2022
Issue body actions

Feature or enhancement

(A clear and concise description of your proposal.)

Pitch

I’m proposing we add a isjunction method to os.path and a is_junction method to pathlib.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 like ismount, islink, etc. So i figure this would fit in.

Previous discussion

See https://discuss.python.org/t/add-mechanism-to-check-if-a-path-is-a-junction/20952 and then lower down https://mail.python.org/archives/list/[email protected]/thread/KQ7AELTQRLYOXD434GQ2AHNDD23C4CYG/

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

Linked PRs

  • gh-99547: Add isjunction methods for checking if a path is a junction #99548

Activity

  1. csm10495
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Nov 16, 2022
  2. sobolevn
    added
    topic-pathlib
    on Nov 16, 2022
  3. eryksun
    added
    OS-windows
    3.12only security fixesonly security fixes
    on Nov 18, 2022
  4. zooba
    added a commit that references this issue on Nov 22, 2022

    gh-99547: Add isjunction methods for checking if a path is a junction (…

    1b2de89
  5. brettcannon commented on Nov 25, 2022

    @brettcannon
    brettcannon
    on Nov 25, 2022
    Member
    More actions

    Can this issue be closed since #99548 got merged?

  6. csm10495 commented on Nov 25, 2022

    @csm10495
    csm10495
    on Nov 25, 2022
    ContributorAuthor
    More actions

    👍 Closing out. Thanks!

  7. csm10495
    closed this as completedon Nov 25, 2022
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

    3.12only security fixesonly security fixesOS-windowstopic-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 01402503 — 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.