[Tutor] Copy Files, Dates

Mike Hansen mhansen@cso.atmel.com
Fri Apr 18 17:56:40 2003


Hi,

I'm new to Python. For my first Python program, I thought I'd have it 
parse a log file and E-mail me if it found any errors in the log file in 
the last two days.

Here's a couple of questions:

How do you copy files using Python? I just want to copy the log file 
before I start processing it. Unless I'm missing something, I've seen 
how to rename and delete files, but I don't see copy.

First I need to find out if a string is a Date. Is there any IsDate like 
function? Also, is there a module that compares dates?

Thanks,

Mike