Jerry Sievers wrote:
Or using list comprehensions:Juliano Freitas <[EMAIL PROTECTED]> writes: >>> [f for f in os.listdir('/tmp') if os.path.isdir(os.path.join('/tmp', f))] ['gconfd-root', '.X11-unix', '.ICE-unix', '.mozilla', '.font-unix'] Just as a side note, and just preference, but I typically (almost always) prefer using os.path.join() rather than using the "+" operator to put a path together. Jeremy Jones |
-- http://mail.python.org/mailman/listinfo/python-list
