Reputation: 6575
Is it possible to write a Twisted application to monitor addtion of new files/folders to a specific folder? If yes, could someone point me to some code/link trying to do it, or give an idea how to do that?
Upvotes: 1
Views: 1454
Reputation: 48335
On Linux, you can have inotify with nice Twisted integration.
Hopefully someday there will be something similar for Windows and perhaps *BSD (based on kqueue), but for now Twisted only ships with support for this on Linux.
Upvotes: 4
Reputation: 6934
You do not need twisted, but of course you can integrate it. Basically you need yo use inotify.
Take a look at https://github.com/seb-m/pyinotify
Upvotes: 1
Reputation: 34718
Windows or linux?
Windows: http://tgolden.sc.sabren.com/python/win32_how_do_i/watch_directory_for_changes.html
Linux: http://www.lambda-computing.com/projects/dnotify/
Upvotes: 0