Implementing a File Watcher in Python

Event-based processing through file arrivals

Costas Andreou
Towards Data Science
3 min readJun 4, 2022

--

Photo by Sigmund on Unsplash

In this blog, we are going to build from scratch what is known as a ‘File Watcher’. A file-watcher is a process which monitors a specific directory for the arrival of any files. The file-watcher, upon the arrival of any file, will trigger a follow-up process.

--

--