Page 1 of 1

filesystem directory content listing

Posted: Thu Oct 30, 2008 10:41 pm
by TsT
Hello,

I'm trying to make a simple shell for the Console.lua.
I'm fine about the current working directory or moving to the writable directory (savedir)

but how can I list the content of a directory : like "ls" (linux) or "dir" (DOS) ?

If it's not possible due to not implemented yet...
This feature will be usefull to manage config or cache file in savedir.
For security reason it might be good to not allowing to browse outside of the savedir.

Regards,

Re: filesystem directory content listing

Posted: Thu Oct 30, 2008 11:10 pm
by Damnae
Maybe with love.filesystem.enumerate( dir ) ?

Re: filesystem directory content listing

Posted: Fri Oct 31, 2008 5:27 pm
by TsT
Oups... :?