Python – Monitoring contents of files/directories?

cross-platformfilefilesystemsmonitoringpython

I'm looking for a cross-platform file monitoring python package? I know it is possible to monitor files on windows using pywin32, and there are packages working on Linux/Unix but does anyone know about a cross-platform one?

Best Solution

I'm working on an MIT-licensed library that helps Python programs monitor file system events as portably as possible. There are differences that I'm trying to iron out. Highly alpha version at the moment:

Check it out here: http://github.com/gorakhargosh/watchdog/

Patches and contributions are welcome.

Hope it helps. =) Cheers.