After changing account in my Google Drive on a Windows machine, every directory when synced with my mac now has an "Icon?" file with no extension and apparently no contents.
This has happened once before after I cloned a Git directory. It gets listed on the Atom project tree simply as "Iconr"
Here is a screenshot of the file:
And this is the information I get:
Anyone know what this is? ... Doesn't seem to be doing anything ... But is making me curious!
When setting a custom icon on a folder this is where the Finder stores the image. The file itself is not visible in the Finder (but you can see it in the shell).
You can use the getFileInfo
tool to see the Finder flags:
$ getFileInfo Icon^M
...
attributes: aVbstclinmEdz
...
The capital V
means the invisible bit is set. If that is not the case on your system, you'll see the file in the Finder. Loosing the Finder flags is not uncommon when you transport your files through hostile territory as Google or Windows land :)
The "Icon?" files are ancient technology from Mac OS classic where (if I remember correctly) custom icons were stored in the resource fork of a file. But because folders did not have resource forks a different way to store the icon was needed and so engineers came up with the idea of a hidden file.
The filename is actually "Icon" + CR
. CR is the line termination character in Mac OS classic. This name was selected to make it impossible to conflict with human entered filenames.
Oh, and, because you made me remember this stuff from more than 20 years ago, I'll save you the vote-to-close (because your question is actually off topic for Stack Overflow) :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With