Skip to content

pathlib.Path.glob() does not list dangling symlink when pattern is the exact filename #89769

Closed
@raek

Description

@raek
mannequin
BPO 45606
Nosy @Fidget-Spinner, @akulakov, @raek
PRs
  • GH-89769: Pathlib - do not follow links when checking for precise glob match #29655
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/akulakov'
    closed_at = None
    created_at = <Date 2021-10-25.19:20:55.106>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'pathlib.Path.glob() does not list dangling symlink when pattern is the exact filename'
    updated_at = <Date 2022-01-23.06:57:12.913>
    user = 'https://github.com/raek'

    bugs.python.org fields:

    activity = <Date 2022-01-23.06:57:12.913>
    actor = 'andrei.avk'
    assignee = 'andrei.avk'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-10-25.19:20:55.106>
    creator = 'raek'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45606
    keywords = ['patch']
    message_count = 4.0
    messages = ['404996', '406643', '406644', '406645']
    nosy_count = 3.0
    nosy_names = ['kj', 'andrei.avk', 'raek']
    pr_nums = ['29655']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45606'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    Labels

    3.12only security fixesstdlibPython modules in the Lib dirtopic-pathlibtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions