FTP的FileSystemWatcher路径(凭证) [英] FileSystemWatcher path with FTP (credentials)

查看:90
本文介绍了FTP的FileSystemWatcher路径(凭证)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢我的意思


我的情况是

我必须从FTP自动下载文件,因为文件在那里....

这就是为什么我尝试使用带计时器滴答事件的File Watcher进行工作,但它在本地正常运行但不能使用FTP的原因

那么我该如何管理所有任务
感谢

thanks I have got your points


My scenario is

I have to download a file automatically from FTP as file comes there ....

that''s why i tried to work with File Watcher with Timer tick event but its locally working fine but not with FTP

so how can i manage all this task
thanks

推荐答案

您昨天问了这个问题,JSOP给了您答案;

通过FTP使用C#的FileSystemWatcher [
You asked this question yesterday and JSOP gave you the answer;

FileSystemWatcher with FTP using C#[^]

If you have a problem with the answer leave a comment at it.


您不能将FileSystemWatcher类与FTP文件夹一起使用.暂时,它没用.没有办法解决.
You cannot use the FileSystemWatcher class with an FTP folder. It''s not going to work, period. There''s no way around it.


您不能在FTP文件夹中使用FileSystemWatcher类.要实现所需的功能,您需要在服务器部分实施更多的解决方案.

您是否有权访问服务器并准备开发服务器部分?如果可以,则可以基于TCP和FileSystemWatcher通过订阅"工作来实现自定义通知服务.客户端可以连接到该服务,并在提供部分文件系统的同时订阅特定目录的通知.该服务还可以实现FTP协议,只是将它们放在一起.另外,这一切都可以基于您的自定义(应用程序级)协议来完成,而无需任何FTP(这足够有效,但无论如何还是很陈旧的).

—SA
You cannot use FileSystemWatcher class with FTP folder. To achieve what you want, you need pretty more solution to be implemented on the server part.

Do you have access to the server and ready to develop for server part? If you can do it, you could implement custom notification service based on TCP and FileSystemWatcher working "by subscription". The clients could connect to this service and subscribe for notification of the certain directory withing part of the file system served up. This service could also implement FTP protocol, just to put it all together. Alternatively, it all could be done based on you custom (application-level) protocol, without any FTP (which is effective enough but pretty archaic anyway).

—SA


这篇关于FTP的FileSystemWatcher路径(凭证)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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