Re: os.stat st_mtime problem

2010-08-16 Thread MRAB
Alban Nona wrote: Hello, Im stuck with this problem: I would like to os.stat st_mtime to copy only the files that have different modification date. so I found something on internet using this kind of line: if os.stat(dest).st_mtime - os.stat(src).st_mtime > 1: shutil.copy2 (src, dst)

os.stat st_mtime problem

2010-08-16 Thread Alban Nona
Hello, Im stuck with this problem: I would like to os.stat st_mtime to copy only the files that have different modification date. so I found something on internet using this kind of line: if os.stat(dest).st_mtime - os.stat(src).st_mtime > 1: shutil.copy2 (src, dst) So I adapted it to my scri