[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: check if file exists
- From: Björn De Meyer <bjorn.demeyer@...>
- Date: Sun, 24 Nov 2002 14:35:43 +0100
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).
It already exists, though will probably need to be ported to Lua 5.
Look here for Lua poslib.
"No one knows true heroes, for they speak not of their greatness." --
Björn De Meyer