How to separate directory list and file list?

Gonnasi harddong at 21cn.net
Sun Oct 23 11:09:46 EDT 2005


With
>glob.glob("*")

or
>os.listdir(cwd)

I can get a combined file list with directory list, but I just wanna a
bare file list, no directory list. How to get it?

Tons of thanks in advance!

Gonnasi



More information about the Python-list mailing list