If you use a Mac and have accidentally emptied the trash folder, then you are looking for solutions in the right place. Mac Trash works in a similar way as Windows Recycle Bin. Generally, all the files you delete from your Mac end up at the Mac Trash.
Emptying the Trash however would be more gross if you continued using the device. This is because there are more chances the files can be overwritten by new ones.