Gonnasi 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?

Using Jason Orendorff's path module, it's just this:

 >>> from path import path
 >>> path('.').files()  # returns list of files in current dir


-Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to