Does Java have native OS file system events monitoring support?

You can use a WatchService:

The implementation that observes events from the file system is intended to map directly on to the native file event notification facility where available, or to use a primitive mechanism, such as polling, when a native facility is not available

You can also have a look at this tutorial which confirms that point

Most file system implementations have native support for file change notification. The Watch Service API takes advantage of this support where available. However, when a file system does not support this mechanism, the Watch Service will poll the file system, waiting for events

Tags:

Java