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.
Hmm...On the one hand, you're obviously right, using the findfirst()
emulation to implement file_exists() seems is not very efficient. On the
other hand, Allegro has done it up to now and it saves code.
Pretty interesting alternative.
---
Eric Botcazou
ebotcazou@xxxxxxxxxx