Selective FTP download using .NET

2019-04-11 15:07发布

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.

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).

How can I do that. Is there any API available for selectively downloading files.

Also, is there any tools already available to do this?

标签: c# ftp
2条回答
Emotional °昔
2楼-- · 2019-04-11 15:44

I don't think there will be any tool tailor made for your requirement. But if you have the client library, you can make one yourself.

查看更多
对你真心纯属浪费
3楼-- · 2019-04-11 16:06

You can simply use the methods of the WebClient class for this.

查看更多
登录 后发表回答