fnmatch on filename (without specific extension)

kepioo nkammah at yahoo.fr
Sun Apr 9 01:46:00 EDT 2006


Hi,


I have some files in a directory :
Results Log, 11;21AM, Apr 09 2006.txt
Results Log, 11;21AM, Apr 08 2006.txt
Results Log, 03;59AM, Apr 07 2006.txt
otherfile1.txt
otherfile2.txt
...



I'd like to copy all the Results Log file, whatever the hour but with a
specific day. For instance, today ( 9th april), the script should copy
the first file : Results Log, 11;21AM, Apr 09 2006.txt


Any idea, help?

Regards,




More information about the Python-list mailing list