Re: [AD] Splitting filesystem APIs |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] Splitting filesystem APIs
- From: Christopher Bludau <count.cb@xxxxxxxxxx>
- Date: Sun, 19 Apr 2009 23:46:10 +0200
<snip>
I didn't check the reasons to change the api (I only read quickly over
them).
But when reading this discussion there was one question that popped up
in my mind (probably totally unrelated to this discussion):
Will a zip file or (or any container which can contain files and
directories) be a directory or a file?
Another thing that I came up with is this. I think it would be pretty
neat to do something like this (pseudo code)
entry_list = get_all_entries_from_dir(dir);
foreach(entry in entry_list)
{
if (entry is file)
//do something with a file
else if (entry is dir)
// do something with dir
}
Will there be a way to do something like this after the change?
If not, it would not be to bad. Just would like to know if something
like this will be possible after the change.
I have no opinion on which way is better, yet. Both have pros and cons.
Just wanted to ask this questions.
Christopher