Re: directory listing
- From: Taura Milana <learfox furry ao net>
- To: GTK App Devel <gtk-app-devel-list gnome org>
- Subject: Re: directory listing
- Date: Thu, 20 Dec 2001 14:47:30 -0800
On 2001.12.20 05:57 Sreenidhi.B.G wrote:
Hi all,
is there a way to scan the current directory and get the filenames ,
runtime. I cannot afford to create and display widget, get the selection
and then use "gtk_get_selection_file_name", I'm looking for some way
(API) to get me the filenames in the current directory,
thanks
First use opendir() to open the directory and get a DIR * pointer.
Then use readdir() to get the next struct dirent *.
When you are done call closedir().
See the manual pages for each one.
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]