lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Dec 18, 2009 at 2:50 AM, KHMan <keinhong@gmail.com> wrote:
> The other problem is that in Windows, you will get most of the stat()
> information with the Find---File() calls.

Yes, LuaFileSystem is definitely designed around the POSIX model,
where iterating directory contents is very cheap.  But adding another
kind of iterator which provides the common stat information is not
difficult and can be also a useful shortcut (I think lua-ex has
something like this)

> So, in order to have common functionality, no platform is likely to get a
> perfect file system library.

Perfect is the probably the chief enemy of portability.  'Mostly Good
Enough' is what we hope for.

steve d.