AKM
AKM

Reputation: 6575

Monitoring files with twisted

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

Answers (3)

Jean-Paul Calderone
Jean-Paul Calderone

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

Enrico Carlesso
Enrico Carlesso

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

Related Questions