Ticket #4 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Add FTPHost.walk

Reported by: schwa Assigned to: schwa
Priority: minor Milestone: 2.1
Component: Library Version: 2.0.3
Keywords: os.walk, os.path.walk, generators, iterators, Python 2.2, Python 2.3 Cc:

Description

Python 2.3 introduced an os.walk function which is much more pythonic than the still existing os.path.walk function.

I'm not sure whether the code of the new function should also be compatible with Python 2.0, like the rest of ftputil 2.0.3. When using generators/iterators (which where introduced in Python 2.2), the implementation would be much easier.

Change History

2006-01-28 17:40:44 changed by schwa

  • status changed from new to assigned.

2006-01-28 22:07:41 changed by schwa

  • status changed from assigned to closed.
  • resolution set to fixed.

I've added the 'walk' method to FTPHost. It was an easy implementation because I could use the code from Python's os.walk with only small changes. On the other hand, this means that FTPHost.walk will only work with Python versions 2.2 and above. Earlier versions don't support the necessary generators.

2006-02-07 18:01:21 changed by schwa

  • milestone changed from 2.0.4 to 2.1.