文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>【mark】ftputil和ftp_sync目录同步

【mark】ftputil和ftp_sync目录同步

时间:2009-01-12  来源:u0u0

一个第三方包。很好的实现了 本地目录与ftp服务器的同步。
也许也能fxp,还没试过

- Download and install ftputil.

- Download the ftp_sync 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)

相关阅读 更多 +
排行榜 更多 +
别惹神枪手安卓版

别惹神枪手安卓版

冒险解谜 下载
坦克战争世界

坦克战争世界

模拟经营 下载
丛林反击战

丛林反击战

飞行射击 下载