[Twisted-Python] watch a directory (Win32)
Hello twisted folks! Last week I found this great framework that seems to do most of what I need. But it's a bit hard to get into, as you know... I'm on WinXP with Python 2.3. I need to watch a directory for new files and found this recipe using Win32 events: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/156178 I'd like to use a twisted reactor instead of that while loop, but don't understand how to handle those Win32 notifies using deferreds. Or perhaps there is a better twisted solution, that I didn't find in the docs? I'd prefer a portable way (my script could also run on AIX or MacOS X), but as far as I found, it's heavily system dependent (Win32: win32file.FindFirstChangeNotification, BSD/OSX: kqueue?, Linux: dnotify?) Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept.
participants (3)
-
Andrew Bennetts
-
Henning.Ramm@mediapro-gmbh.de
-
Patrick Lauber