For a college course, I am required to use a Google Drive folder as my project location. The problem is that Google Drive makes my hidden OS X Icon files appear.
When I
These are the solutions we developed, based on Hod's answer.
Getting rid of all current Icon
files
find . -name Icon\*
find . -name Icon\* -delete
Automatically removing future Icon
files
Icon
files every minute:
(crontab -l 2>/dev/null; echo "*/1 * * * * find . -name Icon\* -delete") | crontab -
To undo, enter the following incantation (adapted from https://askubuntu.com/a/719877/43296) in a terminal window (in any folder):
crontab -l | grep -v Icon | crontab -
Assumptions
All of this assumes that you have:
Icon
in your projects hierarchy that you want to keep. Icon
that you want to keep.