Re: [AD] About findfirst (2)

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



On Fri, 31 Aug 2001, Eric Botcazou wrote:

> > But why you'll have to search whole directory (worst case) in order to see
> > if some file exists? It's wasting of time. Let the OS (not DOS, but true
> > OS :-) handle it. That function is not crucial, but these DOS-isms (like
> > whole FA_* attribs thing) makes me sad :-( But never mind, I give up.
>
> I think I have found the solution that will make us both happy :-)
> I'll modify the POSIX al_findfirst() so as to let it use stat() when the
> pattern it is passed hasn't got any wildcard.

Great! ;-)

Have a nice day.

Stepan Roh



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