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

Abierto
#53 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
electron, react, typescript
Área
desktop-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
TypeScript
Estrellas
3
Forks
0
Merge medio
2 min
PR fusionados (30 d)
35

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de A21-devs/Virtual-Machine-Manager

Todos los issues de A21-devs/Virtual-Machine-Manager

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.