lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 12/18/06, Javier Guerra <javier@guerrag.com> wrote:
On Monday 18 December 2006 2:07 pm, Ken Smith wrote:
> I have found myself in a position where I must use Lua to walk a
> directory tree and performing some operation on every file.  Is there
> an idiomatic way to do this in Lua?  Ideally, I
check luafilesystem.  you can either do your routine recursive (quick and
easy) or create a FIFO queue, so your code looks 'flat'.  you can also create
an iterator that would do the recursion for you.

That does the trick.  Thank you.

 Ken Smith