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.

Renaming file will override existing one without warning

See original GitHub issue

Describe 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:

  1. Go to files page
  2. Have 2 files: 1.png and 2.png
  3. Rename 2.png to 1.png
  4. 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jessicaschillingcommented, Oct 7, 2020

@rafaelramalho19 – how about this? image

  • Icon is stroke_attention
  • Headline is Overwrite file?
  • Text is 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.
  • Buttons are Overwrite and Cancel
0reactions
SgtPookicommented, Dec 2, 2022
Read more comments on GitHub >

github_iconTop 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 >

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