notify on directory changes

J

Josh

Hi,
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!
Josh
 
G

Gabriel Genellina

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top