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 — pathlib is_dir gives wrong result for mounted USB flash drive · Issue #104806 · python/cpython

pathlib is_dir gives wrong result for mounted USB flash drive #104806

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
pathlib is_dir gives wrong result for mounted USB flash drive#104806
Copy link
Labels
3.12only security fixesonly security fixes3.13only security fixesonly security fixesOS-windowstopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@bobjalex
bobjalex
opened on May 23, 2023
Issue body actions

Bug report

A clear and concise description of what the bug is.
Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible.

Your environment

  • CPython versions tested on:
  • Operating system and architecture:

Activity

  1. bobjalex
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 23, 2023
  2. bobjalex commented on May 23, 2023

    @bobjalex
    bobjalex
    on May 23, 2023
    Author
    More actions

    I'm having trouble entering data into the report proper, so entering it in a comment:
    CPython version 3.12b1
    My environment: Windows 11 laptop 64bit

    Using pathlib.is_dir for a directory on a mounted USB drive answers False, but os.path.isdir gives the correct answer: True. pathlib.is_dir works fine for the C:\ drive.

    Attached is a little program that shows the problem.
    is_dir.py.txt

  3. AlexWaygood
    added
    topic-pathlib
    on May 23, 2023
  4. bobjalex commented on May 23, 2023

    @bobjalex
    bobjalex
    on May 23, 2023
    Author
    More actions

    Oops, I left this out:
    My output from the attached program:

    python is_dir.py
    using os.path: True
    using pathlib: False
    using os.path: True
    using pathlib: True

  5. eryksun commented on May 23, 2023

    @eryksun
    eryksun
    on May 23, 2023
    Contributor
    More actions

    This issue should be resolved by fixing gh-104820.

    Reacted by Barney Gale
  6. eryksun
    added
    OS-windows
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    on May 23, 2023
  7. zooba commented on May 24, 2023

    @zooba
    zooba
    on May 24, 2023
    Member
    More actions

    Yep, can see this was reported first, but I've already attached the fix to #104820, so closing this as a duplicate.

  8. zooba
    closed this as not plannedon May 24, 2023
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 fixes3.13only security fixesonly security fixesOS-windowstopic-pathlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    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.