Re: [Tutor] directory recursion

2005-09-16 Thread Jacob S.
output.close() ## Jacob Schmidt - Original Message - From: "Rob Andrews" <[EMAIL PROTECTED]> To: Sent: Monday, September 12, 2005 9:55 AM Subject: Re: [Tutor] directory recursion > Thanks! That did the trick after very modest head scr

Re: [Tutor] directory recursion

2005-09-12 Thread Rob Andrews
Thanks! That did the trick after very modest head scratching. -Rob On 9/9/05, Danny Yoo <[EMAIL PROTECTED]> wrote: > > > > What's a nice, clean way to recursively scan through directories with > > an arbitrary number of subdirectories? > > Hi Rob, > > You may want to look at os.walk():

Re: [Tutor] directory recursion

2005-09-09 Thread Kent Johnson
Rob Andrews wrote: > I should already know this, and probably once did, but have never had > a real world use for it until now. > > What's a nice, clean way to recursively scan through directories with > an arbitrary number of subdirectories? Jason Orendorff's path module is awesome for this kind

Re: [Tutor] directory recursion

2005-09-09 Thread Christopher Arndt
Rob Andrews schrieb: > I should already know this, and probably once did, but have never had > a real world use for it until now. > > What's a nice, clean way to recursively scan through directories with > an arbitrary number of subdirectories? os.walk() is you friend! (Don't use os.path.walk() a

Re: [Tutor] directory recursion

2005-09-09 Thread Danny Yoo
On Fri, 9 Sep 2005, Rob Andrews wrote: > I should already know this, and probably once did, but have never had > a real world use for it until now. > > What's a nice, clean way to recursively scan through directories with > an arbitrary number of subdirectories? Hi Rob, You may want to look at

[Tutor] directory recursion

2005-09-09 Thread Rob Andrews
I should already know this, and probably once did, but have never had a real world use for it until now. What's a nice, clean way to recursively scan through directories with an arbitrary number of subdirectories? In today's example, we're looking to grab the file name and third line of the file