Re: cross platform file/dir utility (linux+windows)



I was thinking Glib (as well as GIO and GObject) functions do not work on windows, my fault.

Thanks a lot for the reply, cheers,
Giuseppe.


On Thu, Aug 11, 2011 at 21:04, Maarten Bosmans <mkbosmans gmail com> wrote:
2011/8/11 giuspen <giuspen gmail com>:
>
> Hi,
> I'm using C version of GTK and I need to check if files/folders exist, and
> eventually to create a folder.

Google for 'gtk file exists' and look at the first hit. It's a page
from the glib documentation.

> In linux I used <dirent.h> but this library doesn't work on windows.
> Can anyone point me in the right direction?

It would be nice if you searched a bit for yourself before asking for
a pointer, but here you go.
http://developer.gnome.org/glib/stable/glib-File-Utilities.html#g-file-test

Maarten



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