Re: Detect File System changes

2005-12-23 Thread Lawrence Oluyede
Il 2005-12-23, Lukas Meyer <[EMAIL PROTECTED]> ha scritto: > Hello, > > I'm trying to detect changes in a directory. E.g if someone crates a > file, i'll execute another function on this file. pyinotify (wrapper of inotify) is for you (it's not portable however) http://pyinotify.sourceforge.net/

Re: Detect File System changes

2005-12-23 Thread Lukas Meyer
Hello, Thank you for your assistance. I could manage it using your link to the already discussed thread. best regards, Lukas -- http://mail.python.org/mailman/listinfo/python-list

Re: Detect File System changes

2005-12-23 Thread Kent Johnson
Lukas Meyer wrote: > Hello, > > I'm trying to detect changes in a directory. E.g if someone crates a > file, i'll execute another function on this file. > > I tried to solve this by creating a loop that permanently checks the > contents of this directory with os.listdir() and compares it with the

Re: Detect File System changes

2005-12-23 Thread Noah
In the UNIX world the common tool is FAM -- File Allocation Monitor. This is a daemon that will report filesystem changes to clients. There is a Python interface to libfam called "Python FAM" here: http://python-fam.sourceforge.net/ It looks mature, but I have never used it. There are also som

Re: Detect File System changes

2005-12-23 Thread Fuzzyman
The proper way to do this is to use the facilities provided by the operating system. This means the solution is going to be different for different platforms. I've *not* done this before - but certainly for Windows I've seen discussions about this in this group previously. The win32 extensions exp