After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 638752 - There is no async equivalent for g_file_delete()
There is no async equivalent for g_file_delete()
Status: RESOLVED DUPLICATE of bug 548353
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-01-05 15:33 UTC by Laszlo Pandy
Modified: 2011-01-06 14:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Laszlo Pandy 2011-01-05 15:33:27 UTC
The methods g_file_copy() and g_file_create(), as well as others have async versions (g_file_copy_async(), g_file_create_async() respectively). But there are no async versions for g_file_delete() or g_file_trash(). 

While delete is not usually a long running operation, it can still block the main loop if done on a remote filesystem. At the very least, the documentation should provide some explanation of why the async versions do not exist for the delete and trash methods.
Comment 1 Laszlo Pandy 2011-01-06 14:35:40 UTC

*** This bug has been marked as a duplicate of bug 548353 ***