16

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
  • 13,633
  • 9
  • 43
  • 65

2 Answers2

10

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

serfer2
  • 2,573
  • 1
  • 23
  • 17
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
  • 25,759
  • 22
  • 127
  • 221