"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > for f in os.listdir("."): > // how can I check if 'f' a directory?
Your two approaches are 1) use os.stat (or stat.stat) and check the mode bits; or 2) use os.listdir and catch the OSError exception you get if you use it on a non-directory. -- http://mail.python.org/mailman/listinfo/python-list