Re: A function for ls?
- From: Jeff Shipman <shippy nmt edu>
- To: Germano Rizzo <manomano ciaoweb it>
- Cc: <gtk-list gnome org>
- Subject: Re: A function for ls?
- Date: Fri, 23 Feb 2001 08:40:53 -0700 (MST)
You can open a pipe to ls, or you can use stat(),
which is what I believe ls uses. GTK also provides
support for file selection if you want a widget
that provides the user a way of selecting a file.
access() is another handy function that allows
you to test permissions.
Jeff "Shippy" Shipman E-Mail: shippy nmt edu
Computer Science Major ICQ: 1786493
New Mexico Institute of Mining and Technology
Homepage: http://www.nmt.edu/~shippy
On Fri, 23 Feb 2001, Germano Rizzo wrote:
> Hi!
> is there a library function that gives the contents of a directory?
> Something like 'ls'... or a way to do it using other functions? At least,
> may you address me to a program that uses such a function, to learn on it? I
> browsed the source of ls, but it's... too much! ;)
> precisely, I'd need it for theme support: I've got a directory that
> contains the themes, and the program fetches its contents and test if
> they're valid themes. This way, one can add a new theme to this directory,
> and the program will test for it and use it... the way Sawfish works, all in
> all. How can I do??
> Mano :)
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]