combined files together

Gary Wessle phddas at yahoo.com
Wed May 10 17:56:59 EDT 2006


Eric Deveaud <edeveaud at pasteur.fr> writes:

> Gary Wessle wrote:
> > 
> >  I need to traverse those files in the order they were created
> >  chronologically. listdir() does not do it, is there a way besides
> >  build a list then list.sort(), then for element in list_of_files open
> >  element?
> 
> are the name of the files describing the cration date, 

yes 

> or have to rely on the creation date ?

no


> 
> if the name allows to discriminate the chronology, check glob module.

I just tried glob, it does not put out a list with file names sorted. 
> 
> 	Eric



More information about the Python-list mailing list