dzl-directory-reaper: Dazzle Reference Manual

## dzl-directory-reaper dzl-directory-reaper |

## Functions

DzlDirectoryReaper * | dzl_directory_reaper_new ()
void | dzl_directory_reaper_add_directory ()
void | dzl_directory_reaper_add_file ()
void | dzl_directory_reaper_add_glob ()
gboolean | dzl_directory_reaper_execute ()
void | dzl_directory_reaper_execute_async ()
gboolean | dzl_directory_reaper_execute_finish ()

## Signals

void | remove-file | Run Last

## Types and Values

#define | DZL_TYPE_DIRECTORY_REAPER
| DzlDirectoryReaper

## Object Hierarchy

        GObject
        ╰── DzlDirectoryReaper

## Description

## Functions

### dzl_directory_reaper_new ()

    DzlDirectoryReaper *
    dzl_directory_reaper_new (void);

### dzl_directory_reaper_add_directory ()

    void
    dzl_directory_reaper_add_directory (DzlDirectoryReaper *self,
                                        GFile *directory,
                                        GTimeSpan min_age);

### dzl_directory_reaper_add_file ()

    void
    dzl_directory_reaper_add_file (DzlDirectoryReaper *self,
                                   GFile *file,
                                   GTimeSpan min_age);

### dzl_directory_reaper_add_glob ()

    void
    dzl_directory_reaper_add_glob (DzlDirectoryReaper *self,
                                   GFile *directory,
                                   const gchar *glob,
                                   GTimeSpan min_age);

### dzl_directory_reaper_execute ()

    gboolean
    dzl_directory_reaper_execute (DzlDirectoryReaper *self,
                                  GCancellable *cancellable,
                                  GError **error);

### dzl_directory_reaper_execute_async ()

    void
    dzl_directory_reaper_execute_async (DzlDirectoryReaper *self,
                                        GCancellable *cancellable,
                                        GAsyncReadyCallback callback,
                                        gpointer user_data);

### dzl_directory_reaper_execute_finish ()

    gboolean
    dzl_directory_reaper_execute_finish (DzlDirectoryReaper *self,
                                         GAsyncResult *result,
                                         GError **error);

## Types and Values

### DZL_TYPE_DIRECTORY_REAPER

    #define DZL_TYPE_DIRECTORY_REAPER (dzl_directory_reaper_get_type())

### DzlDirectoryReaper

    typedef struct _DzlDirectoryReaper DzlDirectoryReaper;

## Signal Details

### The `“remove-file”` signal

    void
    user_function (DzlDirectoryReaper *self,
                   GFile              *file,
                   gpointer            user_data)

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

#### Parameters

self | a DzlDirectoryReaper |
file | a GFile |
user_data | user data set when the signal handler was connected. |

Flags: Run Last

Since: 3.32