How to separate directory list and file list?

George Sakkis gsakkis at
Sun Oct 23 18:31:00 CEST 2005

"Gonnasi" <harddong at> wrote:

> 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

Using the path module (

from path import path


More information about the Python-list mailing list