Re: Deleting recursively ....



On Thu, 2010-06-10 at 14:59 -0400, José Alburquerque wrote:
> El Jun 10, 2010, a las 2:12 PM, Glus Xof <gtglus gmail com> escribió:
> 
> > Hi guys,
> >
> > Gio::File::remove() seems not working to delete recursively (when
> > Gio::File is a folder path...)
> >
> > How should I do to delete directories recursively ?
> 
> You could write a recursive routine that uses Gio::FileEnumerator[1]  
> to list the files in the directory.  The routine would recurse if a  
> directory is encountered.
> 
> [1] http://library.gnome.org/devel/glibmm/unstable/classGio_1_1FileEnumerator.html#_details

For instance:
http://git.gnome.org/browse/glom/tree/tests/test_selfhosting_new_empty.cc#n43

I personally find it annoying that there isn't a simple function for
this.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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