Recognizing the Arrival of a New File

Greg Lindstrom greg.lindstrom at novasyshealth.com
Tue Mar 8 09:43:04 EST 2005


Hello-
I am writing an application where I need to recognize when a file 
arrives in a given directory.  Files may arrive at any time during the 
course of the day.  Do I set up a cron job to poll the directory every 
few minutes?  Write a daemon to monitor the directory?  Or is there some 
other more common/accepted way to perform this task?  I'm using Python 
2.3 on Linux.

Thanks for your help,
--greg

-- 
Greg Lindstrom               501 975.4859
Computer Programmer          greg.lindstrom at novasyshealth.com
NovaSys Health
Little Rock, Arkansas

"We are the music makers, and we are the dreamers of dreams."  W.W.





More information about the Python-list mailing list