Skip to content

Gdk.FileList

record (struct)

An opaque type representing a list of files.

Constructors

new_from_array

@classmethod
def new_from_array(cls, files: list[Gio.File]) -> FileList

Creates a new GdkFileList for the given array of files.

This function is meant to be used by language bindings.

Parameters:

  • files — the files to add to the list

new_from_list

@classmethod
def new_from_list(cls, files: list[Gio.File]) -> FileList

Creates a new files list container from a singly linked list of GFile instances.

This function is meant to be used by language bindings

Parameters:

  • files — a list of files

Methods

get_files

def get_files(self) -> list[Gio.File]

Retrieves the list of files inside a GdkFileList.

This function is meant for language bindings.