Efreet_Trash.h provides all of the necessary headers and includes to work with Efreet_Trash. More...
Functions | |
EAPI int | efreet_trash_init (void) |
Initializes the efreet trash system. More... | |
EAPI int | efreet_trash_shutdown (void) |
Cleans up the efreet trash system. More... | |
EAPI const char * | efreet_trash_dir_get (const char *for_file) |
Retrieves the XDG Trash local directory. More... | |
EAPI int | efreet_trash_delete_uri (Efreet_Uri *uri, int force_delete) |
This function try to move the given uri to the trash. Files on different filesystem can't be moved to trash. If force_delete is 0 than non-local files will be ignored and -1 is returned, if you set force_delete to 1 non-local files will be deleted without asking. More... | |
EAPI Eina_List * | efreet_trash_ls (void) |
List all the files and directory currently inside the trash. More... | |
EAPI int | efreet_trash_is_empty (void) |
Check if the trash is currently empty. More... | |
EAPI int | efreet_trash_empty_trash (void) |
Delete all the files inside the trash. More... | |
Efreet_Trash.h provides all of the necessary headers and includes to work with Efreet_Trash.
EAPI int efreet_trash_init | ( | void | ) |
Initializes the efreet trash system.
1
on success or 0
on failure. References efreet_init().
Referenced by elm_need_efreet().
EAPI int efreet_trash_shutdown | ( | void | ) |
EAPI const char * efreet_trash_dir_get | ( | const char * | for_file | ) |
Retrieves the XDG Trash local directory.
NULL
on errors. Return value must be freed with eina_stringshare_del. EAPI int efreet_trash_delete_uri | ( | Efreet_Uri * | uri, |
int | force_delete | ||
) |
This function try to move the given uri to the trash. Files on different filesystem can't be moved to trash. If force_delete is 0
than non-local files will be ignored and -1
is returned, if you set force_delete to 1
non-local files will be deleted without asking.
uri | The local uri to move in the trash |
force_delete | If you set this to 1 than files on different filesystems will be deleted permanently |
1
on success, 0
on failure or -1
in case the uri is not on the same filesystem and force_delete is not set. List all the files and directory currently inside the trash.
EAPI int efreet_trash_is_empty | ( | void | ) |
Check if the trash is currently empty.
1
if the trash is empty or 0
if some file are in. EAPI int efreet_trash_empty_trash | ( | void | ) |
Delete all the files inside the trash.
1
on success or 0
on failure.