FAM_MONITOR_DIRECTORY(3) 1 FAM_MONITOR_DIRECTORY(3)
fam_monitor_directory - Monitor a directory for changes
SYNOPSIS
resource fam_monitor_directory (resource $fam, string $dirname)
DESCRIPTION
Requests monitoring for a directory and all contained files.
A FAM event will be generated whenever the status of the directory (i.e. the result of function stat(3) on that directory) or its content
(i.e. the results of readdir(3)) changes.
The possible event codes are described in detail in the constants part of this section.
PARAMETERS
o $fam
- A resource representing a connection to the FAM service returned by fam_open(3)
o $dirname
- Path to the monitored directory
RETURN VALUES
Returns a monitoring resource or FALSE on errors.
SEE ALSO
fam_monitor_file(3), fam_monitor_collection(3), fam_cancel_monitor(3), fam_suspend_monitor(3), fam_resume_monitor(3).
PHP Documentation Group FAM_MONITOR_DIRECTORY(3)