If you are working on an important project which you do not want to be deleted or altered by accident, you can easily lock it.

You do this by right clicking/ctrl clicking the file, then select “Get Info”, finally check the box that says “Locked”. If done correctly a little lock should appear next to the icon:

Now if you attempt to trash it, a pop up will say that it is locked and cannot be trashed, likewise, it will also ask you if you are sure you want to save the changes every time a modification is made. To delete any locked file, hold option when emptying the trash and it’ll be gone for good
