Re: os.walk and recursive deletion

2007-10-28 Thread Martin Marcher
27 Oct 2007 17:38:10 GMT, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]>: > On Sat, 27 Oct 2007 18:07:44 +0200, Martin Marcher wrote: > > I'm playing around with os.walk and I made up del_tree(path) which I > > think is correct (in terms of the algorithm, but not as python wants > > it :)). > > It's

Re: os.walk and recursive deletion

2007-10-27 Thread Marc 'BlackJack' Rintsch
On Sat, 27 Oct 2007 18:07:44 +0200, Martin Marcher wrote: > Hello, > > I'm playing around with os.walk and I made up del_tree(path) which I > think is correct (in terms of the algorithm, but not as python wants > it :)). It's not correct in terms of the algorithm if you take the algorithm of `os

Re: os.walk and recursive deletion

2007-10-27 Thread Peter Otten
Martin Marcher wrote: > Hello, > > I'm playing around with os.walk and I made up del_tree(path) which I > think is correct (in terms of the algorithm, but not as python wants > it :)). > > As soon as some directory is deleted the iterator of os.walk chokes. > OK that is somehow clear to me as it

os.walk and recursive deletion

2007-10-27 Thread Martin Marcher
Hello, I'm playing around with os.walk and I made up del_tree(path) which I think is correct (in terms of the algorithm, but not as python wants it :)). As soon as some directory is deleted the iterator of os.walk chokes. OK that is somehow clear to me as it can't be valid anymore since it can't