Method Filesystem.Monitor.basic()->file_exists()
- Method
file_exists
void
file_exists(string
path
,Stdio.Stat
st
)- Description
File existance callback.
- Parameter
path
Path of the file or directory.
- Parameter
st
Status information for
path
as 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_exists() 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.
- Note
This callback has similar semantics to file_created(), but is called at initialization time.
- See also