This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267319 - Delete files using recycle bin
Summary: Delete files using recycle bin
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-26 16:13 UTC by onman
Modified: 2016-07-26 16:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description onman 2016-07-26 16:13:58 UTC
I have a project (P1) which is a composer package to be used by other projects. I have stored this in my local composer repository.

In another project (P2) I use the composer dependency P1. As I wanted to completely reset project P2 I deleted its composer 'vendor' directory. This happend to delete project P1 as well (it was linked instead of copied, because it was in a local repository). Fortunately I was able to recover P1 using some undocumented(?) trics found when googling.

I myself was already surprised that netbeans did not delete using the Windows recycle bin, but while googling I found that an old request (from 2007) to delete file through the recycle bin was closed earlier this month (on July 7).

Why is it not yet built into netbeans to use the Windows recycle bin?
I found an example how to do this in java (scroll all the way down to the end for the code example): http://stackoverflow.com/questions/3709492/java-on-windows-how-to-delete-a-file-to-trash-using-jna

Many Windows developers will be gratefull if you implement this.