sonatype/nexus — comment on commit 1e17b2979ad367c5d51370f73b6edcb221aa0d24
File: nexus/nexus-proxy/src/main/java/org/sonatype/nexus/proxy/wastebasket/DefaultWastebasket.java line 163
By adreghiciu:

What if I have a repository that I name "trash" which I remove? That will go into the trash folder and the above code will not remove it.
I think you should change the condition to test that "!directory.equals(baskedFile)"