MECO™ API Reference
|
[ CLASS ] - Class to watch file changes. More...
Public Member Functions | |
def | __init__ (self, path, recursive=False, extension=None, createdCallback=None, editedCallback=None, deletedCallback=None, callback=None) |
Constructor. More... | |
def | start (self) |
Start watcher. More... | |
def | stop (self) |
Stop watcher. More... | |
[ CLASS ] - Class to watch file changes.
def mFileSystem.simpleWatcherLib.SimpleWatcher.__init__ | ( | self, | |
path, | |||
recursive = False , |
|||
extension = None , |
|||
createdCallback = None , |
|||
editedCallback = None , |
|||
deletedCallback = None , |
|||
callback = None |
|||
) |
Constructor.
path | [ str | None | in ] - Absolute directory to be watched. |
recursive | [ bool | False | in ] - Whether to watch recursively. |
extension | [ str | None | in ] - Extension of the files to be watched. |
createdCallback | [ function | None | in ] - Created callback. |
editedCallback | [ function | None | in ] - Edited callback. |
deletedCallback | [ function | None | in ] - Deleted callback. |
callback | [ function | None | in ] - Callback. |
N/A |
def mFileSystem.simpleWatcherLib.SimpleWatcher.start | ( | self | ) |
Start watcher.
N/A |
def mFileSystem.simpleWatcherLib.SimpleWatcher.stop | ( | self | ) |
Stop watcher.
N/A |