Method Filesystem.Monitor.basic()->file_created()
- Method
file_created
void
file_created(string
path
,Stdio.Stat
st
)- Description
File creation callback.
- Parameter
path
Path of the new file or directory.
- Parameter
st
Status information for
path
as obtained byfile_stat(path, 1)
.This function is called when either a monitored path has started existing, or when a new file or directory has been added to a monitored directory.
Called by check() and check_monitor().
Overload this to do something useful.
- Note
This callback has similar semantics to file_exists(), but is called at run time.
- See also