Re: Re: walking a directory tree
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Re: walking a directory tree
- From: "Ken Smith" <kgsmith@...>
- Date: 2006年12月18日 11:44:22 -0800
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