os.stat - time format conversion + md5

P_spam_ at draigBrady.com P_spam_ at draigBrady.com
Tue Dec 17 09:58:35 EST 2002


I'm a bit confused about what you want. Why can't you just compare
the output from os.stat() for both files. Why the human readable
requirement?

Also I can't see why the date has anything to do with it unless
you're doing a 2 way sync. Anyway if I was you...

if both src and dest filenames exist
    stat both
    if sizes same
        just copy because crc will be slower

Have you looked at rsync?

Pádraig.




More information about the Python-list mailing list