I'm writing a daemon that needs to run every time a new file is placed into a specific directory. The only way I have come across to do this would be to have a list of the files and then constantly read the the list of files in the directory and compare them to the list i already have. the problem with this method is that it seems to tedious and time consuming, because I need a very fast response time. Does anyone have any idea of a quicker way to detect a new file? thanks

-Ryan