Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It urgently needs an alert when replacing a existing file #1400

Open
rauven opened this issue Aug 30, 2022 · 0 comments
Open

It urgently needs an alert when replacing a existing file #1400

rauven opened this issue Aug 30, 2022 · 0 comments

Comments

@rauven
Copy link

rauven commented Aug 30, 2022

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:
* Checked that your issue isn't already filed: https://github.com/icetee/remote-ftp/issues

Description

The extension will delete all the content of any existing file without any way to recover it (if not using git or manual backups) if by mistake we try to create a new file with the same name

Steps to Reproduce

  1. create a file with remote-ftp on the ftp side
  2. a new file is opened without any confirmation and the previous content, on both local and ftp is completely gone...

Expected behavior:
We should get an alert when creating a file and it already exists.

Actual behavior: [What actually happens]
If we try to create a file and it already exists, the extension will simply and blindly create and replaces the old file with a new blank one, on both ftp and local, literally destroying said file without any way to recover it if the user isn't actively making backups.
People can create files by mistake that already exist if they happen to be in the wrong folder by mistake for example.

Reproduces how often:
100% of the time

Versions

OSX :12.5.1
Atom : 1.60.0
Electron : 9.4.4
Chrome : 83.0.4103.122
Node : 12.14.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant