Foundry.DirectoryListing

g Foundry.Contextual Foundry.Contextual Foundry.DirectoryListing Foundry.DirectoryListing Foundry.Contextual->Foundry.DirectoryListing GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Gio.ListModel->Foundry.DirectoryListing Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ListModel (4)

Structs:

GObject.ObjectClass (5)

class

new (context, directory, attributes, query_flags)

await_ ()

dup_directory ()

load_parent ()

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5), Gio.ListModel (3)

Properties

Inherited:

Foundry.Contextual (1)

Name

Type

Flags

Short Description

attributes

str

r/w/co

directory

Gio.File

r/w/co

include-parent

bool

r/w/co

query-flags

Gio.FileQueryInfoFlags

r/w/co

Signals

Inherited:

GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

GObject.Object (1), Gio.ListModel (1)

Class Details

class Foundry.DirectoryListing(**kwargs)
Bases:

Foundry.Contextual, Gio.ListModel

Abstract:

No

Structure:

Foundry.DirectoryListingClass

Manages directory contents and file listings.

Foundry.DirectoryListing provides a model for displaying directory contents with support for file monitoring, VCS integration, and custom attributes. It maintains a sequence of directory items and provides efficient access to file information for the file manager and other components.

classmethod new(context, directory, attributes, query_flags)
Parameters:
Return type:

Foundry.DirectoryListing

await_()
Returns:

a [class`Dex`.Future] that resolves to a value or rejects with error.

Return type:

Dex.Future

Await the completion of the initial directory listing.

dup_directory()
Return type:

Gio.File

Gets the directory for the listing.

New in version 1.1.

load_parent()
Returns:

a [class`Foundry`.DirectoryListing]

Return type:

Foundry.DirectoryListing

Loads a similar directory listing for the parent directory.

New in version 1.1.

Property Details

Foundry.DirectoryListing.props.attributes
Name:

attributes

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.DirectoryListing.props.directory
Name:

directory

Type:

Gio.File

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.DirectoryListing.props.include_parent
Name:

include-parent

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.DirectoryListing.props.query_flags
Name:

query-flags

Type:

Gio.FileQueryInfoFlags

Default Value:

Gio.FileQueryInfoFlags.NONE

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY