RE: [AD] al_find* in Unix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Title: RE: [AD] al_find* in Unix

> I think this behaviour conforms to the semantics of the
> 'attrib' parameter: passing
> FA_DIREC means you're looking for "normal" directories (and
> files). Directories (or files)
> with any other flags (FA_RDONLY or FA_HIDDEN) set are not
> "normal" in this view.

True, but if I want to get all directories, I then have to make
two calls, one with FA_HIDDEN and one without, which is rather odd.
I guess using stat(2) directly would be better, it appears to be
quite portable. Even to Win32 (but with the underscores so that
code does not compile out of the box, of course).

--
Vincent Penquerc'h



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/