使用C#和FTP的FileSystemWatcher [英] FileSystemWatcher with FTP using C#

查看:59
本文介绍了使用C#和FTP的FileSystemWatcher的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过FTP使用FileSystemWatcher


会根据FTP自动在搜索文件上触发10秒

如果文件存在,则提示新文件刚来".

I want to use FileSystemWatcher with FTP


where it automatically fire 10 seconds on search file according to FTP

if file exists so it prompts "new file has just come "

推荐答案

FileSystemWatcher不会按计划自动触发".它监视指定文件夹中的指定文件名/掩码,并触发事件.您可能会发现本系列文章很有趣,尤其是第2部分:

FileSystemWatcher-纯混沌(第1部分,共2部分) [ FileSystemWatcher-纯粹的混乱(第2部分,共2部分) [
FileSystemWatcher doesn''t "automatically fire" on a schedule. it watches the specified folder for the specified filename/mask, and fires events as a result. You might find this article series interesting, especially part 2:

FileSystemWatcher - Pure Chaos (Part 1 of 2)[^]

FileSystemWatcher - Pure Chaos (Part 2 of 2)[^]


另请参阅我最近的回答:带有FTP(证书)的FileSystemWatcher路径 [
See also my recent answer: FileSystemWatcher path with FTP (credentials)[^].

—SA


这篇关于使用C#和FTP的FileSystemWatcher的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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