Re: [AD] About findfirst (2)

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


> 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.

---
Eric Botcazou
ebotcazou@xxxxxxxxxx



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