On Sat, Nov 20, 2010 at 5:28 AM, Vasudevan N 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), t
The simplest way would be to use recursive calls.
Thanks,
Vasu
On Wed, Nov 17, 2010 at 8:05 PM, Nitin Kumar 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 function
On Thu, Nov 18, 2010 at 10:46 AM, Kenneth Gonsalves wrote:
> On Thu, 2010-11-18 at 10:26 +0530, Asokan Pichai wrote:
> > On 18 November 2010 09:35, Nitin Kumar wrote:
> > > hi all,
> > >
> > > is there any simple way where a can parse into directory and
> > subdirectories
> > > to get the detail
On Thu, Nov 18, 2010 at 10:46:47AM +0530, Kenneth Gonsalves wrote:
> >
> > Check if os.walk() is useful.
>
> but that is looping - which he does not want.
Then he can wrap python over 'find -type f |wc -l'
- Provided he is on POSIX and wants to just count the files.
os.system('find -type f |wc
On Thu, 2010-11-18 at 10:26 +0530, Asokan Pichai wrote:
> On 18 November 2010 09:35, Nitin Kumar wrote:
> > hi all,
> >
> > is there any simple way where a can parse into directory and
> subdirectories
> > to get the detail of files and count.
>
> Check if os.walk() is useful.
but that is loopi
On 18 November 2010 09:35, Nitin Kumar wrote:
> hi all,
>
> is there any simple way where a can parse into directory and subdirectories
> to get the detail of files and count.
Check if os.walk() is useful.
--
Asokan Pichai
*---*
We will find a way. Or, make one. (Hannibal)
__
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@python.org
http://mail.p