Directory tree synchronisation tool


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)