
Dec. 30, 2014
9:36 p.m.
On 30 Dec 2014, at 00:19, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
Andrew Barnert wrote:
you just look up the name of the trash directory (which I believe is theoretically localized but actually always ~/.Trash on the drive with your user directory, $mnt/.Trash otherwise) and call rename.
You may also need to invent a unique name if there's already a file in the trash with the same name.
And whatever else the api does for you… IMHO its better to use the API for this on OSX, such as FSMoveObjectToTrashSync. Ronald