combined files together

Eric Deveaud edeveaud at pasteur.fr
Tue May 9 04:29:19 EDT 2006


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, or have to rely on the
creation date ?

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

	Eric



More information about the Python-list mailing list