webcontainer-core
webcontainer-core copied to clipboard
Renaming a file to an existing one overwrites it
Describe the bug
Renaming a file and giving it the name of another, existing file, just replaces it with no warning.
Link to the blitz that caused the error
https://no.need/
Steps to reproduce
Create a file a.txt Create another file b.txt rename b.txt to a.txt
a.txt is lost, and replaced with the content of b.txt
Expected behavior
A warning should be issued, instead
Parity with Local
- [X] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
No response
Additional context
No response