notify on directory changes

Gabriel Genellina gagsl-py at yahoo.com.ar
Fri Nov 17 20:50:59 EST 2006


At Friday 17/11/2006 19:41, Josh wrote:

>Does python have a way of registering a callback - or through some other
>mechanism - to notify me when a directory listing has changed, or if a file
>has been modified, deleted, created, etc.? I'm looking for behavior similar
>to the .net class FileSystemWatcher. I would also be interested to know if
>there exists a portable c or c++ solution, too.
>thanks!

Not one, but three ways: 
http://tgolden.sc.sabren.com/python/win32_how_do_i/watch_directory_for_changes.html
The only portable way I can think of is the first: polling the 
directory contents at intervals.


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list