ISO copied in with Explorer can show up before the copy is done

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
electron, react, typescript
Lĩnh vực
desktop-dev

Hướng nghiên cứu

The ISO list refresh that runs 400 ms after a change in the ISOs folder is introduced in #51, and the .part naming from #52 is the drag-and-drop path to compare against. Read the folder watcher and the list-building code they touch, then reproduce by copying a large ISO into the folder with Explorer and watching the list. Done when a partly copied ISO stays out of the list until its size stops changing or it can be opened exclusively, and the fix is covered by a test.

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

Mô tả

backend bug

Since #51 the ISO list refreshes 400 ms after the last change in the ISOs folder. When an ISO is copied into the folder with Explorer (not through drag and drop in the app, which uses a .part name since #52), the file has its final name from the start. If the copy stalls for a moment, for example from a slow USB stick or a network share, the list refreshes and offers the half-copied ISO. Booting from it fails somewhere in the installer with a confusing error.

Ideas:

  • only list files whose size hasn't changed between two checks a second apart
  • or try opening the file for exclusive read, Windows refuses that while Explorer is still writing it
Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

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 A21-devs/Virtual-Machine-Manager

Tất cả issue của A21-devs/Virtual-Machine-Manager

Issue tương tự

Thêm issue về TypeScript

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.