Reading about Craig’s issue (a cleanup script escaped its target directory and placed thousands of desired files into the trash/recycle directory.

It occurs to me that the GUI tools have to store the origin path somewhere when they move files into the recycle bin. I’m not sure his script would do this, but it might be a good idea for future reference. In the meantime, I might take a look at KDE (and the desktop spec) documentation. I think he uses GNOME, but I detest that desktop. Still might be worth reading their docs also.