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 
New murgaLua 0.5.5 release !!
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: New murgaLua 0.5.5 release !!

Looking forward to it....downloading at a blazing 4.3 KB/sec I should have it in no time....

...almost there...

...only 14 minutes to go....

It seems that LuaFileSystem will definitely be worth having to make a few script changes here and there.

fl_ask will be dropped from FLTK anyway, so that's no biggie. Use fl_choice instead, which is more flexible.

First test, replacing murgaLua.readDirectory() with lfs.dir()...

for i in lfs.dir(directory) do table.insert(my_files,i) end

It may seem more complicated, but lfs.dir gives you control over what goes in the table, or it can be used without building the table at all. I don't know which is more efficient, though: iterating through a table or repeating a function each time you need to check the contents of a directory. The function would definitely be more flexible, since it will update whenever a change is made to the directory.

Now I need to go find out how to replace murgaLua.isFile() and murgaLua.isDirectory() back later...

This post was last modified: 07-31-2007 07:57 AM by mikshaw.

07-31-2007 07:02 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
New murgaLua 0.5.5 release !! - JohnMurga - 07-31-2007, 06:02 AM
RE: New murgaLua 0.5.5 release !! - mikshaw - 07-31-2007 07:02 AM
RE: New murgaLua 0.5.5 release !! - chrimo - 07-31-2007, 07:57 AM
RE: New murgaLua 0.5.5 release !! - chrimo - 07-31-2007, 07:48 PM

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

Forum Jump: