public static get(path as Path, size as Int = 22, expanded as Boolean = false, volume as Boolean = false) as SystemIcon
Gets a filesystem icon or null when the OS service cannot supply one. Regular files normally use their association without opening the target; Windows executables and .ico files may provide their own icon.
| Parameter | Description |
|---|---|
path | FilePath or FolderPath; a raw Path is treated as a file. |
size | Pixel size, between 8 and 256 inclusive. |
expanded | Request the open-folder variant. |
volume | Request an icon for a filesystem root/logical unit. |