Ad-hoc file notification handler.
More...
#include <FsEventPoller.qm.dox.h>
|
| setMask (string mask) |
| Set filesystem mask like in shell etc. More...
|
|
| logInfo (string fmt) |
| calls the "log_info" closure or call reference with important information
|
|
| logDetail (string fmt) |
| calls the "log_detail" closure or call reference with detail information
|
|
| logDebug (string fmt) |
| calls the "log_debug" closure or call reference with verbose debugging information
|
|
| initialRun (string path) |
| Called in the constructor to get already existing files/events.
|
|
Ad-hoc file notification handler.
This class is suitable for atomic file creation; where files are created with their full contents already in place. In case files are created and then written to in the final location, use AbstractDelayedFsEventPoller instead with a suitable delay.
◆ constructor()
Construct a file poller.
- Parameters
-
path | a string with full path to the directory to be monitored |
options | a hash with options; see AbstractFsEventPollerOptionInfo for details about this parameter |
◆ fileEvent()
abstract FsEventPoller::AbstractFsEventPoller::fileEvent |
( |
hash< FsEventInfo > |
event | ) |
|
|
pure virtual |
Abstract method called whenever soem filesystem event occurs.
- Parameters
-
◆ setMask()
FsEventPoller::AbstractFsEventPoller::setMask |
( |
string |
mask | ) |
|
|
private |
Set filesystem mask like in shell etc.
Converts a glob (standard filesystem) mask into a regex. Example: *.*, *.txt, someprefix_*.csv
File Name Masks and Matching
- Parameters
-
mask | a string with file name mask |
The documentation for this class was generated from the following file:
- doxygen/qlib/FsEventPoller/FsEventPoller.qm.dox.h