XForms: Filedirectory in browser

Dick Middleton (dick@sqf.hp.com)
Mon, 29 Sep 1997 08:29:17 +0100

To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

> To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> > I've got the following problem. I want to write the stuff of a
> > directory into a Multibrowser. Is it possible to use xforms to read
> > out a directory an put the result in a browser ? ...

> You can read the contents of a directory using opendir(3), readdir(3),
> etc., then use stat(2) or lstat(2) to get the information on each file
> in the directory. You can then sort the directory data however you
> wish with qsort(2) or your own favorite sort routine.

> Refer to the manual pages for more detail.

You can also use fl_get_dirlist. The advantage is that it is file-system
independent and the list is sorted. This is part of the file selector
goodie (section 6.4 in the manual).



dick@sqf.hp.com _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/