module Fs_poll:sig
..end
FS Poll handles allow the user to monitor a given path for
changes. Unlike Uwt.Fs_event.t
, fs poll handles use stat to detect
when a file has changed so they can work on file systems where fs
event handles can't.
type
t
include Uwt.Handle
val to_handle : t -> Uwt.Handle.t
type
report = {
|
prev : |
|
curr : |
val start : string ->
int ->
cb:(t -> report uv_result -> unit) ->
t uv_result
Check the file at path for changes every interval milliseconds.
Note: For maximum portability, use multi-second intervals. Sub-second intervals will not detect all changes on many file systems.
val start_exn : string ->
int ->
cb:(t -> report uv_result -> unit) -> t