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

Ouverte
#53 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
Une demi-journée
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
electron, react, typescript
Domaine
desktop-dev

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
TypeScript
Étoiles
3
Forks
0
Merge moyen
2 min
PR mergées (30 j)
41

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de A21-devs/Virtual-Machine-Manager

Toutes les issues de A21-devs/Virtual-Machine-Manager

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.