Python os.listdir fails with FileNotFoundError when directory exists
Open
Nobody has claimed this yet.
3.7 (EOL)
OS-windows
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| BPO | 36243 |
|---|---|
| Nosy | @pfmoore, @tjguk, @stevendaprano, @zware, @zooba, @iritkatriel |
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 = None
closed_at = None
created_at = <Date 2019-03-08.17:22:58.871>
labels = ['type-bug', '3.7', 'OS-windows']
title = 'Python os.listdir fails with FileNotFoundError when directory exists'
updated_at = <Date 2021-06-23.17:35:57.380>
user = 'https://bugs.python.org/GeoffAlexander'
bugs.python.org fields:
activity = <Date 2021-06-23.17:35:57.380>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Windows']
creation = <Date 2019-03-08.17:22:58.871>
creator = 'Geoff.Alexander'
dependencies = []
files = []
hgrepos = []
issue_num = 36243
keywords = []
message_count = 4.0
messages = ['337516', '337552', '337559', '396435']
nosy_count = 7.0
nosy_names = ['paul.moore', 'tim.golden', 'steven.daprano', 'zach.ware', 'steve.dower', 'Geoff.Alexander', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue36243'
versions = ['Python 3.7']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the os.listdir entry point and reproduce the FileNotFoundError on Windows with a directory that exists. The issue names no source file or test, so identify the relevant implementation and regression-test location before deciding the change. Done means the reported existing-directory case behaves correctly without breaking other Windows behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100