Re: [AD] for_each_file not working

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


Eric Botcazou wrote:

r = for_each_file("data/*.lvl", 0, load_level, 0);


This line means: for each file in the data directory whose extension is
'lvl' and for which no file attribute is set, call 'load_level' with 0 as
data (see the docs, section file and compression routines).

Either remove all file attributes from your *.lvl files or extend the set of
searched attributes.


So how can tell it "Show all files but not directories or volume labels"?
FA_ARCH is not enough, since a file may not have it's archive attribute set. This also needs to be compatible with Linux, BeOS, ...


--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/



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