GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.FileSystemWatcher — wxPython 4.3.2 Docs
|
Default constructor. |
|
Adds path to currently watched files. |
|
This is the same as |
|
Retrieves all watched paths and places them in paths. |
|
Returns the number of currently watched paths. |
|
Removes path from the list of watched paths. |
|
Clears the list of currently watched paths. |
|
This is the same as |
|
Associates the file system watcher with the given handler object. |
Properties Summary¶
Class API¶Possible constructors:
FileSystemWatcher() -> None
The FileSystemWatcher class allows receiving notifications of file system changes.
Default constructor.
None
Adds path to currently watched files.
The path argument can currently only be a directory and any changes to this directory itself or its immediate children will generate the events. Use AddTree to monitor the directory recursively.
Note that on platforms that use symbolic links, you should consider the possibility that path is a symlink. To watch the symlink itself and not its target you may call FileName.DontFollowLink on path.
path (string) – The name of the path to watch.
events (int) – An optional filter to receive only events of particular types. This is currently implemented only for GTK.
bool
This is the same as Add , but also recursively adds every file/directory in the tree rooted at path.
Additionally a file mask can be specified to include only files matching that particular mask.
This method is implemented efficiently on MSW and macOS, but should be used with care on other platforms for directories with lots of children (e.g. the root directory) as it calls Add for each subdirectory, potentially creating a lot of watches and taking a long time to execute.
Note that on platforms that use symbolic links, you will probably want to have called FileName.DontFollowLink on path. This is especially important if the symlink targets may themselves be watched.
path (string)
events (int)
filter (string)
bool
Retrieves all watched paths and places them in paths.
Returns the number of watched paths, which is also the number of entries added to paths.
paths (list of strings)
int
Returns the number of currently watched paths.
int
See also
Removes path from the list of watched paths.
See the comment in Add about symbolic links. path should treat symbolic links in the same way as in the original Add call.
path (string)
bool
Clears the list of currently watched paths.
bool
This is the same as Remove , but also removes every file/directory belonging to the tree rooted at path.
See the comment in AddTree about symbolic links. path should treat symbolic links in the same way as in the original AddTree call.
path (string)
bool
Associates the file system watcher with the given handler object.
All the events generated by this object will be passed to the specified owner.
handler (wx.EvtHandler)
None