ftp下载文件 [英] Ftp download files

查看:87
本文介绍了ftp下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从ftp文件夹下载所有文件到pc中的文件夹。

解决方案

嗨Noam,


欢迎来到MSDN论坛。


喜欢
Castorix31 说,你可以拥有看一下FTP协议。但是FtpWebRequest并没有明确支持递归文件操作 


将所有文件从FTP目录下载到本地文件夹,您必须列出远程目录中的所有文件,然后逐个下载。 


请检查以下示例:


C#通过FTP下载所有文件和子目录


下载
目录ftp和c#
中的所有文件




最好的问候,


萨拉


How do i download from ftp folder all the file to a folder in pc.

解决方案

Hi Noam,

Welcome to the MSDN forum.

Like Castorix31 said, you can have a look at the FTP protocol. But the FtpWebRequest does not have any explicit support for recursive file operations and to download all files from a FTP directory to a local folder, you will have to list all files in the remote directory and then download them one by one. 

Please check the following example:

C# Download all files and subdirectories through FTP

downloading all files in directory ftp and c#

Best regards,

Sara


这篇关于ftp下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆