Developing a Hue Directory watcher

Hello,
I would like to develop a Java or Python program to watch the contents of a Hue directory, especially when someone drops a file into it.
Are there any API to do that?
Many thanks.