Gio.FileInfo.prototype.get_icon

function get_icon(): Gio.Icon {
    // Gjs wrapper for g_file_info_get_icon()
}
  

Gets the icon for a file.

Returns

Gio.Icon for the given info.