lua-users home
lua-l archive

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


Basile STARYNKEVITCH wrote:
> 
> On POSIX systems you can use the access(2) and stat(2) system calls.
> 
> But please notice that Ansi C knows only (at most, ie not in
> standalone or embedded implementations) about files (thru <stdio.h>)
> and does *not* know about directories.
> 
> Perhaps we could wish a Lua interface to major Posix calls, but this
> is a big work (and would make lua quite big).
> 
> Regards.

It already exists, though will probably need to be ported to Lua 5.
Look here for Lua poslib.

http://www.soho-one.com.br/software/poslib/


-- 
"No one knows true heroes, for they speak not of their greatness." -- 
Daniel Remar.
Björn De Meyer 
bjorn.demeyer@pandora.be