This program is an advanced directory synchronization and update tool. It can be used to update content between two directories, synchronize them, or just report the difference in content between them. It uses the syntax of the 'diff' program in printing the difference.
from dirsync import sync #sync(sourcedir, targetdir, action, **options) # The first folder is the source folder and the second is the target # Adding purge = True tells the function to delete anything in the target folder which is no longer in the source folder sync('C:\\Projects', '\\\\BANGTECH-HP\\F\\Projects', 'sync', purge = False, exclude=(r'^.*\/bin\/.*$|^.*\/obj\/.*$',), verbose = False)