Alternative to os.listdir()/os.stat()

Tim Roberts timr at
Fri Jan 24 05:15:58 CET 2003

"nobody" <nobody at> wrote:
>Also os.path.walk() could be an improvement.

Probably not.  It does exactly what his loop does: os.listdir, and then
os.stat (disguised as "ispath") for every filename.

However, it would be easier to understand with os.path.walk...
- Tim Roberts, timr at
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list