一个第三方包。很好的实现了 本地目录与ftp服务器的同步。
也许也能fxp,还没试过
- Download and install ftputil.
- Download the and put it into the site-packages/ftputil
directory.
import ftputil
from ftputil import ftp_sync
source = ftp_sync.LocalHost()
target = ftputil.FTPHost(hostname, username, password)
syncer = ftp_sync.Syncer(source, target)
syncer.sync(source_directory, target_directory)
|
阅读(1001) | 评论(0) | 转发(0) |