News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
best way to list filenames in Lua?
Author Message

Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #1
RE: best way to list filenames in Lua?

mikshaw Wrote:
I decided, after a long google session, to just go with what I have, which is using io.popen("ls").
It is definite...there is no directory listing in Lua.
If someone happens to want to run this script on Windows or pre-OSX Mac, they'll just have to edit it.

What about just using :

murgaLua.readDirectory( directory );

That's what I have it in there for :-)

You can then filter the .txt files quite easily (have a look at convertFluidToMurgaLua.lua for filtering examples).


06-07-2007 08:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
RE: best way to list filenames in Lua? - JohnMurga - 06-07-2007 08:16 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: