使用.NET选择性FTP下载 [英] Selective FTP download using .NET
问题描述
我有一个FTP建立网站,新版本将被更新。
这将创建一个名为构建XXXXX在一个特定的FTP位置为每一个新构建一个新的文件夹。我需要从一个位置下载构建内部构建XXXXX目录(如Builds\Build XXXXX\German\iso\German.iso)。在这里,我无法预测号XXXXX。
I have an ftp build site where new builds will be updated. It will create a new folder named "Build XXXXX" in a specific ftp location for every new build. I need to download the build from a location inside "Build XXXXX"directory (eg. Builds\Build XXXXX\German\iso\German.iso). Here I can't predict number XXXXX.
我打算写一个.NET应用程序来自动监控任何新的Build XXXXX文件夹中的FTP位置,并且如果它存在,应用程序应该下载该文件在指定位置(即\German\iso)。
I'm planning of writing a .NET application to automatically monitor the ftp location for any new Build XXXXX folder and if it is present, the application should download the file at the specified location (ie \German\iso).
我怎样才能做到这一点。是否有可供选择下载文件的API。
How can I do that. Is there any API available for selectively downloading files.
此外,有没有已经可以做到这一点任何工具?
Also, is there any tools already available to do this?
推荐答案
您可以简单地使用的 Web客户端
此类。
You can simply use the methods of the WebClient
class for this.
这篇关于使用.NET选择性FTP下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!