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:25 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> D:\>lua -e "print(package.config)"
> \
> ;
> ?
> !
> -
>
> i.e. package.config:sub(1,1) is what you want.

Nice, I did't know this package.config table. It's not even documented
on the reference manual.


>> And is it possible to delete files without using the lfs module?
> os.remove()

To delete a dir with files/directory inside, I will have to implement it my own?
It involves scanning files in a directory..and this solution
http://lua-users.org/wiki/DirTreeIterator involves "lfs", which I'd
like to avoid.