Re: [Tutor] tree problem

2010-09-12 Thread Alan Gauld
"Lie Ryan" wrote In this case, the only reason why you hit the recursion limit is if you have a directory which is 1000 deep (quite unlikely, Windows has a directory depth limit much lower than that). Or you accidentally have a recursive directory - one that contains a shortcut to a folder

Re: [Tutor] tree problem

2010-09-12 Thread Roelof Wobben
> Date: Sun, 12 Sep 2010 13:40:09 -0400 > Subject: Re: [Tutor] tree problem > From: joel.goldst...@gmail.com > To: rwob...@hotmail.com > > > > On Sun, Sep 12, 2010 at 1:20 PM, Roelof Wobben >> wrote: > > > > ___

Re: [Tutor] tree problem

2010-09-12 Thread Joel Goldstick
On Sun, Sep 12, 2010 at 10:48 AM, Roelof Wobben wrote: > > > > > > Date: Sun, 12 Sep 2010 09:46:08 -0400 > > From: joel.goldst...@gmail.com > > To: tutor@python.org > > Subject: Re: [Tutor] tree problem > > > >

Re: [Tutor] tree problem

2010-09-12 Thread Roelof Wobben
> Date: Sun, 12 Sep 2010 09:46:08 -0400 > From: joel.goldst...@gmail.com > To: tutor@python.org > Subject: Re: [Tutor] tree problem > > > > On Sun, Sep 12, 2010 at 9:32 AM, Roelof Wobben >> wrote: > > > ___

Re: [Tutor] tree problem

2010-09-12 Thread Joel Goldstick
On Sun, Sep 12, 2010 at 9:32 AM, Roelof Wobben wrote: > > > > > Date: Sun, 12 Sep 2010 09:08:18 -0400 > > From: joel.goldst...@gmail.com > > To: tutor@python.org > > > Subject: Re: [Tutor] tree problem > > > > &

Re: [Tutor] tree problem

2010-09-12 Thread Joel Goldstick
On Sun, Sep 12, 2010 at 7:54 AM, Lie Ryan wrote: > On 09/12/10 21:15, Roelof Wobben wrote: > > > > > > Hello, > > > > I have this problem. > > > > Write a program named litter.py that creates an empty file named > trash.txt in each subdirectory of a directory tree given the root of the > tree as

Re: [Tutor] tree problem

2010-09-12 Thread Roelof Wobben
> Subject: Re: [Tutor] tree problem > From: evert@gmail.com > Date: Sun, 12 Sep 2010 13:29:12 +0200 > CC: tutor@python.org > To: rwob...@hotmail.com > >> Write a program named litter.py that creates an empty file nam

Re: [Tutor] tree problem

2010-09-12 Thread Lie Ryan
On 09/12/10 21:15, Roelof Wobben wrote: > > > Hello, > > I have this problem. > > Write a program named litter.py that creates an empty file named trash.txt in > each subdirectory of a directory tree given the root of the tree as an > argument (or the current directory as a default). By de

Re: [Tutor] tree problem

2010-09-12 Thread Evert Rol
> Write a program named litter.py that creates an empty file named trash.txt in > each subdirectory of a directory tree given the root of the tree as an > argument (or the current directory as a default). > > So I change the example to this : > > def traverse(path, s='.\n', f=0, d=0): > path2f