14

I need to know in python whenever a new file was added/removed/modified in a particular directory Is there a way for that? I'm looking for an "inofity"-like function (from POSIX).

Thanks

Novellizator
  • 9,169
  • 9
  • 38
  • 58

2 Answers2

7

You can use inotify for python, which is NOT the same as PyInotify (older).

serfer2
  • 2,175
  • 1
  • 19
  • 16
1

As mentioned in the similar question, you might want to have a look at http://packages.python.org/watchdog/ which also works on Windows.

Tobias Kienzler
  • 21,611
  • 21
  • 111
  • 204