I\'m writing a script to copy compiled files from one location to another.
What I have at the moment is something like this:
import os import shutil
You could make use of the file modification time, if that's enough for you:
# If more than 1 second difference if os.stat(src).st_mtime - os.stat(dest).st_mtime > 1: shutil.copy2 (src, dst)
Or call a synchronization tool like rsync.