Renaming file will override existing one without warning
See original GitHub issueDescribe the bug
When you rename
a file to match a file that already exists with that name, it overrides the later without any warning.
To Reproduce Steps to reproduce the behavior:
- Go to files page
- Have 2 files:
1.png
and2.png
- Rename
2.png
to1.png
- No warning that original
1.png
will be permanently lost with the rename
Expected behavior @jessicaschilling thoughts on the expected behavior? Maybe open a modal that requires confirmation before actually replacing file?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Python program to rename file names while overwriting if ...
So first check to see if the destination file exits and if it exists, delete it. Another option is to use shutil. move,...
Read more >Renaming Files/Folders Warning - Microsoft Community
I want to set up a prompt for when a user tries to rename files or folders. Instead of automatically renaming, I want...
Read more >rename(1) - Linux manual page - man7.org
WARNING top The renaming has no safeguards by default or without any one of the options --no-overwrite, --interactive or --no-act. If the user ......
Read more >Moving and renaming files (mv command) - IBM
Attention: The mv command can overwrite many existing files unless you specify the -i flag. The -i flag prompts you to confirm before...
Read more >R: File Manipulation
Where file permissions allow this will overwrite an existing element of to . This is subject to the limitations of the OS's corresponding...
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
@rafaelramalho19 – how about this?
stroke_attention
Overwrite file?
You already have a file named (funny-cat.gif) in this directory. Are you sure you want to overwrite it? This action is permanent and cannot be reversed.
Overwrite
andCancel
closing in favor of https://github.com/ipfs/ipfs-webui/issues/1612