FileList

Added in version 4.6.

class FileList(*args, **kwargs)

An opaque type representing a list of files.

Constructors

class FileList
classmethod new_from_array(files: Sequence[File]) FileList

Creates a new GdkFileList for the given array of files.

This function is meant to be used by language bindings.

Added in version 4.8.

Parameters:

files – the files to add to the list

classmethod new_from_list(files: list[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

Added in version 4.8.

Parameters:

files – a list of files

Methods

class FileList
get_files() list[File]

Retrieves the list of files inside a GdkFileList.

This function is meant for language bindings.

Added in version 4.6.