Without that dry_run set to False nothing happens.
opts = {"force": False, "delete_unmatched": True, "verbose": 3, "execute": True, "dry_run": False}
Thanks, it works great otherwise :)
from ftpsync.targets import FsTarget, UploadSynchronizer
from ftpsync.ftp_target import FtpTarget
Without that dry_run set to False nothing happens. opts = {"force": False, "delete_unmatched": True, "verbose": 3, "execute": True, "dry_run": False} Thanks, it works great otherwise :)
from ftpsync.targets import FsTarget, UploadSynchronizer from ftpsync.ftp_target import FtpTarget
local = FsTarget("~/temp") user ="joe" passwd = "secret" remote = FtpTarget("/temp", "example.com", user, passwd) opts = {"force": False, "delete_unmatched": True, "verbose": 3, "execute": True, "dry_run" : False} s = UploadSynchronizer(local, remote, opts) s.run()