Hey everyone,

I'm attempting to write a directory monitor in java but I'm stuck. I'm trying to find something in Java that is like FileSystemWatcher in .NET but I don't think java does. From what I read is that you have to continually poll the directory for changes. What I would like to know is that are there any events raised when a changes are made so that one could catch and process them? If not, could someone explain how to simply poll the directory for changes?

Thanks
Barefoot

You can use a Timer for the polling. You will need to detect changes on your own.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.