Java – Monitor Directory for File Creation

Photo by Christina Morillo from Pexels

In batch processing, there are use-cases that require event triggers to start operations on data sources, e.g., files or remote web endpoint. These could be user-initiated events like clicking a button. They could even be system-generated ones like file creation. This post demonstrates how to monitor a local file system directory for new files for processing using only Java. Continue Reading