benfry / processing4

Processing 4.x releases for Java 17
https://processing.org
Other
1.31k stars 236 forks source link

Deleting sketch caused Processing to delete my entire Downloads folder (2) #794

Open chryshbk opened 9 months ago

chryshbk commented 9 months ago

Description

I had a sketch from my class opened with a .java file which does not apply to Processing, so I clicked to delete it and it wiped my whole Downloads folder. This issue was raised here (https://github.com/benfry/processing4/issues/424) with the resolution that it would at least send it to the recycling bin then they could still be recovered. However, it wiped all my files entirely instead of sending to the recycling bin. This is a huge issue and I believe that instead of deleting the file entirely, it should send to the recycling bin since most files are sent to Downloads folder.

Expected Behavior

Send folder to the recycling bin for retrieval (it was made by mistake).

Current Behavior

Wipes the entire folder from the computer.

Steps to Reproduce

  1. Open a sketch from Downloads folder (or any folder
  2. Click to delete it
  3. Click yes
  4. Folder is gone forever.

Your Environment

Possible Causes / Solutions

I'd say just send it to the recycling bin. Should require password instead of a dialog window if it intends to wipe from the drive at least because it can potentially remove very important files by accident.

benfry commented 8 months ago

Yikes, are you certain you were using the 4.3 version? It should have given you a message asking if you were sure, and specifically saying “This will delete the "Downloads" folder.”

Also on macOS, it should only be moving to the Trash, so that's a surprise.

JokeGijsbrechts commented 7 months ago

I also had this issue today !! my full downloads folder is gone 😢😢😢