rm -rf with glib?

2010-02-07 Thread Michael Libby
I see there are convenience wrappers in glib for remove(), unlink() and rmdir(). But these only work on a single file or directory at a time. I don't see any way to delete an entire directory tree at once, as with `rm -rf`. I know how to write a recursive function using the functions above to get

g_debug as bug fixer?

2009-12-21 Thread Michael Libby
I am the strangest thing with some C code I'm writing that uses glib. I was having some issues with seg faults and/or corruption, so I decided to try and track where it was happening by throwing a couple of quick g_debug statements into my code. But this had the effect of causing the error to go