lua-users home
lua-l archive

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


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