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
  • 11,959
  • 9
  • 40
  • 62

2 Answers2

10

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

serfer2
  • 2,365
  • 1
  • 20
  • 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
  • 23,665
  • 21
  • 122
  • 214