[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Portably iterate over a directory
- From: Alexander Gladysh <agladysh@...>
- Date: Mon, 30 Nov 2009 23:03:49 +0300
Hi, list!
In my utility Lua script I need to iterate recursively over a
directory and find all *.lua files.
I'm doing this with lfs now, but I want my script to work on pure Lua
without any 3rd party modules. I need it to work on Linux, OS X and
Windows systems.
I think I should use os.execute with output, piped into a temporary
file (sine io.popen doesn't work on Windows).
Before I start implementing this myself, perhaps there is an existing solution?
Alexander.