question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When you delete a directory containing the saved file and try to save again nothing happens

See original GitHub issue

Steps to reproduce:

  1. Create a new directory
  2. Create a drawing and save it to that directory
  3. Make changes and press save (as expected I’m getting a notification that the file is saved)
  4. Delete the directory with that file in it
  5. Press save again.

Result:

  1. Nothing happens visually (the user thinks that the file is saved)
  2. Console throws an error: DOMException: A requested file or directory could not be found at the time an operation was processed.

When you just deleting the file, and save again, the file is being created again… so that’s nice!

Actions

We should probably ask for a file location again when that happens.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dwellecommented, Mar 31, 2021

Thanks. Also, I said opt-in but the example I gave is opt-out. I’m not sure which one of those is the best default. I don’t care either way, but if you have a strong opinion which is the better default, be sure to go with that.

0reactions
tomayaccommented, Apr 1, 2021

I have just released v0.16.2 that contains a fix to deal with this. See https://github.com/GoogleChromeLabs/browser-fs-access/commit/c4ce7f0313f9dde923a2220c798e4d5365cdcf32 for details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

You may receive a "Your changes could not be saved" error ...
This issue occurs if Excel cannot delete the original file or cannot rename the temporary file so that the save operation cannot successfully...
Read more >
How to Delete Undeletable Files & Folders in Windows 10 or 8 ...
In this video, I will show you how to delete undeletable files on Windows 10, 8 or 7 using command prompt. This tutorial...
Read more >
Why is space not being freed from disk after deleting a file in ...
When deleting a large file or files, the file is deleted successfully but the size of the filesystem does not reflect the change....
Read more >
Can't Delete a OneDrive File or Folder? Here's What to Do
It's possible you can't delete the file because a program is currently using it. Make sure you've closed the file on your device...
Read more >
1643. How can I recover a Word document I was working on ...
If no file is found you need to find the Autosave file and copy it to the location shown when Recover is used....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found