lua-users home
lua-l archive

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


On Thu, Jul 15, 2010 at 10:02 AM, Valerio Schiavoni
<valerio.schiavoni@gmail.com> wrote:
> In particular, is there something in Lua to get the current-platform
> directory separator on paths?

D:\>lua -e "print(package.config)"
\
;
?
!
-

i.e. package.config:sub(1,1) is what you want.

> And is it possible to delete files without using the lfs module?

os.remove()

steve d.