ftp下载文件 [英] Ftp download files
问题描述
如何从ftp文件夹下载所有文件到pc中的文件夹。
嗨Noam,
欢迎来到MSDN论坛。
喜欢
Castorix31 说,你可以拥有看一下FTP协议。但是FtpWebRequest并没有明确支持递归文件操作 和
将所有文件从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屋!