Sorting Directories from files in a os.listdir??

Soren soren.skou.nielsen at gmail.com
Thu Apr 10 05:55:13 EDT 2008


Hi,

I'd like to read the filenames in a directory, but not the
subdirectories, os.listdir() gives me everything... how do I separate
the directory names from the filenames? Is there another way of doing
this?

Thanks!



More information about the Python-list mailing list