Lemoncode / Lemoncode/quickmock

Overwriting file on save sometimes create a ghost file

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
70
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Let's say your file is named

"myfile.qm"

And you save and overwrite that file, sometimes you start getting 0 bytes files like

"myfile0.qm"

"myfile1.qm"

But the "myfile.qm" is really updated.

Check if there's something going on with the Chrome new file beta api

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reproducing the overwrite scenario for a file named myfile.qm and inspect the save flow around Chrome's new file beta API. Check whether repeated saves create myfile0.qm or myfile1.qm alongside the updated file. Done means overwriting the original leaves no zero-byte ghost files.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.