RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
python链接远程ftp服务器并列出目录下的文件的代码

如下资料是关于python链接远程ftp服务器并列出目录下的文件的代码,希望对各位有用。

公司专注于为企业提供成都做网站、网站制作、微信公众号开发、商城网站定制开发,成都小程序开发,软件按需开发网站等一站式互联网企业服务。凭借多年丰富的经验,我们会仔细了解各客户的需求而做出多方面的分析、设计、整合,为客户设计出具风格及创意性的商业解决方案,创新互联更提供一系列网站制作和网站推广的服务。

import pysftp

srv = pysftp.Connection(host="your_FTP_server", username="your_username",
password="your_password")

# Get the directory and file listing
data = srv.listdir()

# Closes the connection
srv.close()

# Prints out the directories and files, line by line
for i in data:
    print i

当前名称:python链接远程ftp服务器并列出目录下的文件的代码
网页路径:http://scpingwu.com/article/pggjji.html