• Post Reply Bookmark Topic Watch Topic
  • New Topic

Watching a Directory for Changes over FTP

 
emmanuel raj
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,

I have a requirement where i need to watch changes in a directory(addition , deletion of files) over FTP . Can anyone throw some light how this can be done .

I did have a look at Watch Service API , but it seems like it can be implemented on a local directory .

Any help is much appreciated . Thanks in advance .
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fear the only way to do this is to poll the server regularly. That's how older file watch services worked that could not use the notification mechanisms of the underlying file system.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!