[Windows] scandir returns filenotfound for long paths but os.walk does not

Đang mở
#90,242 20 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python

Hướng nghiên cứu

Bắt đầu bằng cách chạy test_dir_scan_dir.py trên Windows với cấu trúc thư mục dài được mô tả trong issue, sau đó so sánh hành vi của nó với test_os_walk.py. Kiểm tra việc xử lý đường dẫn liên quan đến scandir và xác minh rằng các đường dẫn dài không còn tạo ra FileNotFoundError trong khi os.walk vẫn tiếp tục hoạt động. Xác nhận hành vi bằng một bài kiểm thử hồi quy tập trung.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

3.9 (EOL) OS-windows tests topic-IO
BPO 46084
Nosy @pfmoore, @tjguk, @jkloth, @zware, @serhiy-storchaka, @eryksun, @zooba
Files
  • test_dir_scan_dir.py: can be used to show filenotfound issue with long directory names. os_walk does not do the same thing.
  • test_os_walk.py: this script works just fine on the same directory structure.
  • test_dir_scan_dir.py: can be used to show filenotfound issue with long directory names. os_walk does not do the same thing.
  • 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']
    

    Ngôn ngữ chính
    Python
    Star
    77.2k
    Fork
    36k
    Merge trung bình
    1 ngày 9 giờ
    Pull request đã merge (30 ngày)
    558

    Hướng dẫn đóng góp

    Mở hướng dẫn đóng góp

    Bắt đầu từ đâu

    1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
    2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
    3. Fork repository và làm thay đổi trên một nhánh.
    4. Mở pull request có tham chiếu số hiệu của issue.

    Issue khác của python/cpython

    Tất cả issue của python/cpython

    Issue tương tự

    Thêm issue về Python

    Nhận issue mới trong hộp thư của bạn

    Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.