Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to watch a directory for changes? [duplicate]

Could not find anything in python core to do this. Can anyone recommend a library or "battery" to do this? Ideally I would like this to be portable but it's OK if it is available only for Unix (my server).

like image 295
Gnu Engineer Avatar asked Sep 07 '25 08:09

Gnu Engineer


1 Answers

On Linux, you could be interested in pyinotify

  1. https://github.com/seb-m/pyinotify

Other related libraries:

  1. http://people.gnome.org/~veillard/gamin/python.html
  2. Python FAM interface: http://python-fam.sourceforge.net/
  3. http://gorakhargosh.github.com/watchdog/
like image 58
pyfunc Avatar answered Sep 09 '25 02:09

pyfunc