[BangPypers] parsing directory and subdirecties

Dhananjay Nene dhananjay.nene at gmail.com
Sat Nov 20 08:32:41 CET 2010


On Sat, Nov 20, 2010 at 5:28 AM, Vasudevan N <vasudevan.in at gmail.com> wrote:

> The simplest way would be to use recursive calls.
>
Vasu,

a. That could still entail a loop on a files per directory basis
b. If you avoid the loop and recurse on a per file (eg by shaving the head
off the sequence and passing on the tail), there's no tail call optimization
to avoid a stack overflow.

Dhananjay

>
> Thanks,
> Vasu
>
> On Wed, Nov 17, 2010 at 8:05 PM, Nitin Kumar <nitin.nitp at gmail.com> wrote:
>
> > hi all,
> >
> > is there any simple way where a can parse into directory and
> subdirectories
> > to get the detail of files and count.
> >
> > or do i need to use looping and other functionalities.
> >
> > --
> > Nitin K
> > _______________________________________________
> > BangPypers mailing list
> > BangPypers at python.org
> > http://mail.python.org/mailman/listinfo/bangpypers
> >
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
--------------------------------------------------------
blog: http://blog.dhananjaynene.com
twitter: http://twitter.com/dnene


More information about the BangPypers mailing list