Re: [AD] al_find* in Unix

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


> I call file_exists with FA_DIREC with ".valkin2", and it tells me
> it doesn't. Tracing, it happens because it would want me to request
> FA_HIDDEN.
> I'd expect all directories to be listed with FA_DIREC. Is this
> something intended, or should it be fixed ?

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.

> The best way would probably to pass two sets of attributes, one
> containing the bits we *want* in the matched files, and another
> one containing the bits we do *not* want in the matched files.

All this stuff is a goold old DOS-ism...

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



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