lua-users home
lua-l archive

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


Valerio Schiavoni wrote:
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.

On Windows you can do:
 local dir = "my directory"
 os.execute('rd /s /q "' .. dir .. '">nul')

(assuming there are no permission or in-use problems)

  Enrico