Re: Deleting recursively ....
- From: Glus Xof <gtglus gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: Deleting recursively ....
- Date: Thu, 10 Jun 2010 21:24:42 +0200
El 10 de juny de 2010 21:13, Murray Cumming <murrayc murrayc com> ha escrit:
> 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.
>
Mr. Jongsma,
Mr. Alburquerque,
Mr. Cumming,
Thankx a lot for your answers,
Glus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]