[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Re: walking a directory tree
- From: "Ken Smith" <kgsmith@...>
- Date: Mon, 18 Dec 2006 11:44:22 -0800
On 12/18/06, Javier Guerra <firstname.lastname@example.org> 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.