mar10 / pyftpsync

Synchronize directories using FTP(S), SFTP, or file system access.
https://pyftpsync.readthedocs.io
MIT License
117 stars 25 forks source link

Docs are wrong - opts requires "dry_run" : False #1

Closed CarlosOnline closed 11 years ago

CarlosOnline commented 11 years ago

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()