FileSystemWatcher

  • Thread starter Thread starter csharpula csharp
  • Start date Start date
C

csharpula csharp

Hello,is there any FileSystemWatcher wich will track if some file been
updated but getting as an input a url (from remote comp - not defenetly
windows os) and not a path?
 
csharpula csharp formulated the question :
Hello,is there any FileSystemWatcher wich will track if some file been
updated but getting as an input a url (from remote comp - not defenetly
windows os) and not a path?

No. As I understand it, FSW hooks into the operating system so it
receives notifications about changed files. It does not poll for
changes itself.

There is no standard mechanism (that I know of) to receive "changed"
notifications from remote systems. You probably have to write something
yourself, by polling (HTTP has an If-Modified-Since option ..).
Be careful: the remote system might not be pleased if you fire too many
of these requests!

If you can put code on that remote system, you could maybe set up a FSW
there, where you can register for notifications if (specific) files
have changed (have that service call *you* when there was a change).


Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top