I'd just use rsync and not have to write any code at all :)
In reply to Re: Directory comparisons by RichardK in thread Directory comparisons by joeymac