Gio.FileIcon.new

function new(file: Gio.File): Gio.FileIcon {
    // Gjs wrapper for g_file_icon_new()
}
  

Creates a new icon for a file.

file

a Gio.File.

Returns

a Gio.Icon for the given file, or null on error.