Method Filesystem.Monitor.basic()->file_exists()
- Method file_exists
voidfile_exists(stringpath,Stdio.Statst)- Description
File existance callback.
- Parameter
path Path of the file or directory.
- Parameter
st Status information for
pathas obtained byfile_stat(path, 1).This function is called during initialization for all monitored paths, and subpaths for monitored directories. It represents the initial state for the monitor.
- Note
For directories, file_created() will be called for the subpaths before the call for the directory itself. This can be used to detect when the initialization for a directory is finished.
Called by check() and check_monitor() the first time a monitored path is checked (and only if it exists).
Overload this to do something useful.