FileIcon.find

FileIcon find(string filename, FileIconType filetype = FileIconType.ANY)

Finds an icon for a given filename.

Searches the global icon list for an icon that matches the specified filename and file type.

Parameters

filenameFilename to match
filetypeFile type (default ANY)

Returns

Matching file icon or null if not found