Dazzle.DirectoryReaper

g Dazzle.DirectoryReaper Dazzle.DirectoryReaper GObject.Object GObject.Object GObject.Object->Dazzle.DirectoryReaper

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_directory (directory, min_age)

add_file (file, min_age)

add_glob (directory, glob, min_age)

execute (cancellable)

execute_async (cancellable, callback, *user_data)

execute_finish (result)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

remove-file

The “remove-file” signal is emitted for each file that is removed by the Dazzle.DirectoryReaper instance.

Fields

Inherited:

GObject.Object (1)

Class Details

class Dazzle.DirectoryReaper(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Dazzle.DirectoryReaperClass

classmethod new()
Return type:

Dazzle.DirectoryReaper

add_directory(directory, min_age)
Parameters:
add_file(file, min_age)
Parameters:
add_glob(directory, glob, min_age)
Parameters:
execute(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) –

Raises:

GLib.Error

Return type:

bool

execute_async(cancellable, callback, *user_data)
Parameters:
execute_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

Signal Details

Dazzle.DirectoryReaper.signals.remove_file(directory_reaper, file)
Signal Name:

remove-file

Flags:

RUN_LAST

Parameters:

The “remove-file” signal is emitted for each file that is removed by the Dazzle.DirectoryReaper instance. This may be useful if you want to show the user what was processed by the reaper.

New in version 3.32.