also delete the directory itself
2008-05-24 Jens Granseuer <jensgr@gmx.net> * theme-util.c: (directory_delete_recursive): also delete the directory itself svn path=/trunk/; revision=8723
This commit is contained in:
parent
dbe40b95fc
commit
2a6e126db2
2 changed files with 8 additions and 0 deletions
|
@ -59,6 +59,9 @@ directory_delete_recursive (GFile *directory, GError **error)
|
|||
}
|
||||
g_file_enumerator_close (enumerator, NULL, NULL);
|
||||
|
||||
if (success)
|
||||
success = g_file_delete (directory, NULL, error);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue