MacOS – a 0-size file “Icon?” in a directory

macos

I just noticed in my ~/Copy directory there is a file named Icon? that is 0 byte.

The file is only visible by a ls command.

I'm just curious what for this file exists, does anyone know about it?

Best Answer

It's actually named "Icon\r" (you can verify this with ls in Terminal) and indicates a custom icon for the directory.