A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-April/034818.html below:

[Python-Dev] os.path.walk() lacks 'depth first' option

[Python-Dev] os.path.walk() lacks 'depth first' option [Python-Dev] os.path.walk() lacks 'depth first' optionGuido van Rossum guido@python.org
Sun, 20 Apr 2003 16:59:30 -0400
> Recently I realized that there is no easy way to
> walk a directory tree and rename each directory and file.
> The standard os.path.walk() function does a breadth first walk.

This idea has merit, although I'm not sure I'd call this depth first;
it's more a matter of pre-order vs. post-order, isn't it?

But I ask two questions:

- How often does one need this?

- When needed, how hard is it to hand-code a directory walk?  It's not
  like the body of the walk() function is rocket science.

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4