Determining whether it's a file or a directory?

Dfenestr8 nospam at
Fri Oct 8 11:39:22 CEST 2004

os.listdir("path") returns the names of all the items in a directory ok,
but I need to know whether the item is a file or a directory.

Can anybody tell me how this could be done?

More information about the Python-list mailing list