filesystem directory content listing

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

filesystem directory content listing

Post 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,
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
User avatar
Damnae
Prole
Posts: 12
Joined: Sun Oct 05, 2008 12:33 pm

Re: filesystem directory content listing

Post by Damnae »

Maybe with love.filesystem.enumerate( dir ) ?
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

Re: filesystem directory content listing

Post by TsT »

Oups... :?
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 9 guests