notify on directory changes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Josh

    #1

    notify on directory changes

    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 FileSystemWatch er. I would also be interested to know if
    there exists a portable c or c++ solution, too.
    thanks!
    Josh


  • Gabriel Genellina

    #2
    Re: notify on directory changes

    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 FileSystemWatch er. I would also be interested to know if
    >there exists a portable c or c++ solution, too.
    >thanks!
    Not one, but three ways:

    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

    Comment

    Working...