delete non empty directory



I would like to be able to delete a directory (even if it's not empty,
like g_file_delete demands it to be) and track the deletion progress.
An imaginary  function like

gboolean            g_file_delete_directory(GFile *dir,
GFileDeleteFlags flags, GCancellable *cancellable,

GFileProgressCallback progress_callback, gpointer
progress_callback_data, GError **error);

would be optimal for this purpose. libnautilus-private includes code
that kinda does this but the code is under the GPL and even if it was
under the LGPL it's stil quite digged into the nautilus code. Is there
any plans to implement such functionality in gvfs?

Best wishes
Kristian


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]