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

Open
#53 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
electron, react, typescript
Domain
desktop-dev

Research direction

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.

Written by the indexing model from the issue text.

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
Dominant language
TypeScript
Stars
3
Forks
0
Avg merge
2m
Merged PRs (30d)
59

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from A21-devs/Virtual-Machine-Manager

All issues in A21-devs/Virtual-Machine-Manager

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.