By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

notify on directory changes

P: n/a
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
Nov 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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/...r_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
Nov 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.