I am trying to use a method inside a Python program to determine if a file has been modified in the file system. I know that I could run something every 5 seconds to check the date of the last modification of the system, but I was curious if there is an easier way for this, without having to require my program to re-check.
Does anyone know about such a method?
python
Thomas Ward Apr 21 '11 at 1:12 2011-04-21 01:12
source share