When you delete a directory containing the saved file and try to save again nothing happens
See original GitHub issueSteps to reproduce:
- Create a new directory
- Create a drawing and save it to that directory
- Make changes and press save (as expected I’m getting a notification that the file is saved)
- Delete the directory with that file in it
- Press save again.
Result:
- Nothing happens visually (the user thinks that the file is saved)
- 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:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.