.. link: .. description: .. tags: .. date: 2013/08/18 00:00:00 .. title: NINJA-IDE .. slug: windows .. class:: alert alert-info pull-top .. contents:: *Module:* `windows.py `_ API =============================================================================================================== No description. *Imports:* ------------ - `os `_ - `pywintypes `_ - `win32con `_ - `win32event `_ - `win32file `_ - `ninja_ide.tools.logger.NinjaLogger `_ - `threading.Thread `_ - `__future__.absolute_import `_ - `ninja_ide.core.file_handling.filesystem_notifications.base_watcher `_ - `ninja_ide.core.file_handling.file_manager `_ *Global Attributes:* ---------------------- - `ACTIONS [at ln:39] `_ - `ADDED [at ln:33] `_ - `DEBUG [at ln:30] `_ - `DELETED [at ln:34] `_ - `FILE_LIST_DIRECTORY [at ln:48] `_ - `MODIFIED [at ln:37] `_ - `REMOVE [at ln:35] `_ - `RENAME [at ln:36] `_ - `logger [at ln:29] `_ - `watchmask [at ln:50] `_ ---- *Global Functions:* --------------------- *Function:* `listdir(path) [at ln:55] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def listdir(path): No description. ---- *Class:* `NinjaFileSystemWatcher(base_watcher.BaseWatcher) `_ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ .. code:: python class NinjaFileSystemWatcher(base_watcher.BaseWatcher): No description. *Attributes* ~~~~~~~~~~~~~~ - `watching_paths [at ln:232] `_ *Function:* `__init__() [at ln:229] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(): No description. ---- *Function:* `add_watch(path) [at ln:234] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def add_watch(path): No description. ---- *Function:* `remove_watch(path) [at ln:241] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def remove_watch(path): No description. ---- *Function:* `shutdown_notification() [at ln:248] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def shutdown_notification(): No description. ---- *Class:* `ThreadedFSWatcher(Thread) `_ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- .. code:: python class ThreadedFSWatcher(Thread): No description. *Attributes* ~~~~~~~~~~~~~~ - `_callback [at ln:163] `_ - `_overlapped [at ln:166] `_ - `_wait_stop [at ln:165] `_ - `_watch_path [at ln:162] `_ - `_windows_sucks_flag [at ln:171] `_ - `hEvent [at ln:167] `_ *Function:* `__init__(path, callback) [at ln:161] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(path, callback): No description. ---- *Function:* `run() [at ln:174] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def run(): No description. ---- *Function:* `stop() [at ln:170] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def stop(): No description. ---- *Class:* `FileEventCallback(object) `_ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ .. code:: python class FileEventCallback(object): No description. *Attributes* ~~~~~~~~~~~~~~ - `_path_last_time [at ln:73] `_ - `callback [at ln:72] `_ - `cookie [at ln:74] `_ - `snapshots [at ln:69] `_ *Function:* `__call__(paths) [at ln:79] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __call__(paths): No description. ---- *Function:* `__init__(callback, paths) [at ln:68] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def __init__(callback, paths): No description. ---- *Function:* `pulentastack(path) [at ln:76] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def pulentastack(path): No description. ---- *Function:* `snapshot(path) [at ln:133] `_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code:: python def snapshot(path): No description.