How to copy files only if the source is newer than the destination in Python?

后端 未结 7 528
囚心锁ツ
囚心锁ツ 2021-01-11 19:44

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         


        
7条回答
  •  感情败类
    2021-01-11 20:11

    you could give this python implementation of rsync a try

    http://freshmeat.net/projects/pysync/

提交回复
热议问题