Skip to content

pathlib .glob('*/') returns files as well as directories #77573

@robbuckley

Description

@robbuckley
BPO 33392
Nosy @emilyemorehouse, @robbuckley, @BrianMSheldon
PRs
  • bpo-22276: Fix pathlib.Path.glob not to ignore trailing path separator #10349
  • Superseder
  • bpo-22276: pathlib glob ignores trailing slash in pattern
  • 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/emilyemorehouse'
    closed_at = <Date 2018-05-05.04:14:00.569>
    created_at = <Date 2018-04-30.13:17:33.404>
    labels = ['type-bug']
    title = "pathlib .glob('*/') returns files as well as directories"
    updated_at = <Date 2018-11-17.20:25:43.684>
    user = 'https://github.com/robbuckley'

    bugs.python.org fields:

    activity = <Date 2018-11-17.20:25:43.684>
    actor = 'E Kawashima'
    assignee = 'emilyemorehouse'
    closed = True
    closed_date = <Date 2018-05-05.04:14:00.569>
    closer = 'SilentGhost'
    components = []
    creation = <Date 2018-04-30.13:17:33.404>
    creator = 'robbuckley'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33392
    keywords = []
    message_count = 5.0
    messages = ['315949', '315950', '316007', '316009', '316192']
    nosy_count = 3.0
    nosy_names = ['emilyemorehouse', 'robbuckley', 'brianmsheldon']
    pr_nums = ['10349']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '22276'
    type = 'behavior'
    url = 'https://bugs.python.org/issue33392'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions