When I used the File.delete() method to delete a file, where is the deleted file? I am using a Mac and I don't see the file in the Trash. I want to know where the file is being stored at? Or if it is permanently gone.
Thanks,
解决方案
It's gone. The trash bin is just a temporary place where files are put before being deleted, when you "delete" them through the OS.
In most filesystems, however, deleting a file only removes the pointer to it from the system's list of files. The actual data may sit on the harddrive for a significant amount of time until it is overwritten. There are file recovery tools available that can attempt to retrieve such files, but they are not 100% sucesfull.