webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

Renaming a file to an existing one overwrites it

Open dariomannu opened this issue 1 year ago • 0 comments

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

Screenshots

No response

Platform

No response

Additional context

No response

dariomannu avatar Feb 16 '24 22:02 dariomannu