[Windows] scandir returns filenotfound for long paths but os.walk does not
未关闭
还没有人认领这个 Issue。
3.9 (EOL)
OS-windows
tests
topic-IO
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 558
描述
| BPO | 46084 |
|---|---|
| Nosy | @pfmoore, @tjguk, @jkloth, @zware, @serhiy-storchaka, @eryksun, @zooba |
| Files |
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 2021-12-15.14:54:30.143>
labels = ['expert-IO', 'tests', 'OS-windows', 'type-crash', '3.9']
title = 'Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not'
updated_at = <Date 2022-03-21.18:46:36.102>
user = 'https://bugs.python.org/jschwar313'
bugs.python.org fields:
activity = <Date 2022-03-21.18:46:36.102>
actor = 'jkloth'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Tests', 'Windows', 'IO']
creation = <Date 2021-12-15.14:54:30.143>
creator = 'jschwar313'
dependencies = []
files = ['50492', '50493', '50495']
hgrepos = []
issue_num = 46084
keywords = ['patch']
message_count = 13.0
messages = ['408607', '408608', '408617', '408619', '408621', '408623', '408625', '408626', '408632', '408634', '408636', '408643', '408649']
nosy_count = 8.0
nosy_names = ['paul.moore', 'tim.golden', 'jkloth', 'zach.ware', 'serhiy.storchaka', 'eryksun', 'steve.dower', 'jschwar313']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue46084'
versions = ['Python 3.9']
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 Windows 上使用 issue 中描述的长目录结构运行 test_dir_scan_dir.py,然后将其行为与 test_os_walk.py 进行比较。检查与 scandir 相关的路径处理,并验证长路径不再产生 FileNotFoundError,同时 os.walk 仍能正常工作。使用一个针对性的回归测试确认该行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- operating-systems, testing-qa
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100