vispa.remote.fsmonitor package¶
Submodules¶
vispa.remote.fsmonitor.common module¶
-
class
vispa.remote.fsmonitor.common.FSEvent(watch, action, name='')¶ Bases:
object-
Access= 1¶
-
All= 511¶
-
Attrib= 4¶
-
Create= 8¶
-
Delete= 16¶
-
DeleteSelf= 32¶
-
Modify= 2¶
-
MoveFrom= 64¶
-
MoveSelf= 256¶
-
MoveTo= 128¶
-
action_name¶
-
action_names= {16: 'delete', 1: 'access', 2: 'modify', 4: 'attrib', 32: 'delete self', 8: 'create', 64: 'move from', 128: 'move to', 256: 'move self'}¶
-
path¶
-
user¶
-
-
exception
vispa.remote.fsmonitor.common.FSMonitorError¶ Bases:
exceptions.Exception
-
exception
vispa.remote.fsmonitor.common.FSMonitorOSError¶ Bases:
exceptions.OSError,vispa.remote.fsmonitor.common.FSMonitorError
vispa.remote.fsmonitor.linux module¶
-
class
vispa.remote.fsmonitor.linux.FSMonitor¶ Bases:
object-
add_dir_watch(path, flags=511, user=None)¶
-
add_file_watch(path, flags=511, user=None)¶
-
close()¶
-
disable_watch(watch)¶
-
enable_watch(watch, enable=True)¶
-
read_events(timeout=None)¶
-
remove_all_watches()¶
-
remove_watch(watch)¶
-
watches¶
-
-
class
vispa.remote.fsmonitor.linux.FSMonitorWatch(wd, path, flags, user)¶ Bases:
object
-
vispa.remote.fsmonitor.linux.convert_flags(flags)¶
-
vispa.remote.fsmonitor.linux.parse_events(s)¶
vispa.remote.fsmonitor.polling module¶
-
class
vispa.remote.fsmonitor.polling.FSMonitor¶ Bases:
object-
add_dir_watch(path, flags=511, user=None)¶
-
add_file_watch(path, flags=511, user=None)¶
-
disable_watch(watch)¶
-
enable_watch(watch, enable=True)¶
-
read_events(timeout=None)¶
-
remove_all_watches()¶
-
remove_watch(watch)¶
-
watches¶
-
-
class
vispa.remote.fsmonitor.polling.FSMonitorDirWatch(path, flags, user)¶ Bases:
object-
delstate()¶
-
getstate()¶
-
classmethod
new_state(path)¶
-
setstate(state)¶
-
state¶
-
-
class
vispa.remote.fsmonitor.polling.FSMonitorFileWatch(path, flags, user)¶ Bases:
object-
delstate()¶
-
getstate()¶
-
classmethod
new_state(path)¶
-
setstate(state)¶
-
state¶
-
-
class
vispa.remote.fsmonitor.polling.FSMonitorWatch(path, flags, user)¶ Bases:
object
-
vispa.remote.fsmonitor.polling.get_dir_contents(path)¶
-
vispa.remote.fsmonitor.polling.round_fs_resolution(t)¶
vispa.remote.fsmonitor.win32 module¶
Module contents¶
-
class
vispa.remote.fsmonitor.FSMonitor¶ Bases:
object-
add_dir_watch(path, flags=511, user=None)¶
-
add_file_watch(path, flags=511, user=None)¶
-
close()¶
-
disable_watch(watch)¶
-
enable_watch(watch, enable=True)¶
-
read_events(timeout=None)¶
-
remove_all_watches()¶
-
remove_watch(watch)¶
-
watches¶
-
-
class
vispa.remote.fsmonitor.FSMonitorThread(callback=None)¶ Bases:
threading.Thread-
add_dir_watch(path, flags=511, user=None)¶
-
add_file_watch(path, flags=511, user=None)¶
-
read_events()¶
-
remove_all_watches()¶
-
remove_watch(watch)¶
-
run()¶
-
stop()¶
-
-
exception
vispa.remote.fsmonitor.FSMonitorError¶ Bases:
exceptions.Exception
-
exception
vispa.remote.fsmonitor.FSMonitorOSError¶ Bases:
exceptions.OSError,vispa.remote.fsmonitor.common.FSMonitorError
-
class
vispa.remote.fsmonitor.FSEvent(watch, action, name='')¶ Bases:
object-
Access= 1¶
-
All= 511¶
-
Attrib= 4¶
-
Create= 8¶
-
Delete= 16¶
-
DeleteSelf= 32¶
-
Modify= 2¶
-
MoveFrom= 64¶
-
MoveSelf= 256¶
-
MoveTo= 128¶
-
action_name¶
-
action_names= {16: 'delete', 1: 'access', 2: 'modify', 4: 'attrib', 32: 'delete self', 8: 'create', 64: 'move from', 128: 'move to', 256: 'move self'}¶
-
path¶
-
user¶
-