[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Symlink
- From: "Aaron Brown" <aaron-lua@...>
- Date: Mon, 22 Aug 2005 11:52:41 -0400
OKAJIMA Jun wrote:
> How to do "ln -s foo bar" stuff?
> I guess there is a lib to do it.
With LHF's posix library
<http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/>
you can do
posix.symlink("foo", "bar")
With stock Lua, you can call an external binary:
os.execute("ln -s foo bar")
--
Aaron