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

Offen
#53 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
electron, react, typescript
Bereich
desktop-dev

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
TypeScript
Sterne
3
Forks
0
Ø Merge
2 Min.
Gemergte PRs (30 T.)
41

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus A21-devs/Virtual-Machine-Manager

Alle Issues in A21-devs/Virtual-Machine-Manager

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.