This module overrides everything in the Sys module that might block. Functions do
the same thing as their counterparts in Sys, but instead return deferreds. For a
description of their semantics see the documentation for the Sys module.
val file_exists : string ‑> [ `Yes | `No | `Unknown ] Import.Deferred.tval file_exists_exn : string ‑> bool Import.Deferred.tval when_file_exists : ?poll_delay:Core.Time.Span.t ‑> string ‑> unit Import.Deferred.twhen_file_exists ?poll_delay file returns a deferred that becomes determined when
file exists. The default poll delay is 0.5 seconds. It raises an exception if it
can not check whether the file is there, in the same cases file_exists returns
`Unknown.
val when_file_changes : ?poll_delay:Core.Time.Span.t ‑> string ‑> Core.Time.t Import.Pipe.Reader.twhen_file_changes file polls file using stat and writes file's mtime to the
pipe every time it changes. The first time in the pipe will be file's current
mtime. To stop polling, close the pipe.
val is_directory : ?follow_symlinks:bool ‑> string ‑> [ `Yes | `No | `Unknown ] Import.Deferred.tval is_directory_exn : ?follow_symlinks:bool ‑> string ‑> bool Import.Deferred.tval is_file : ?follow_symlinks:bool ‑> string ‑> [ `Yes | `No | `Unknown ] Import.Deferred.tval is_file_exn : ?follow_symlinks:bool ‑> string ‑> bool Import.Deferred.tval remove : string ‑> unit Import.Deferred.tval rename : string ‑> string ‑> unit Import.Deferred.tval command : string ‑> int Import.Deferred.tval command_exn : string ‑> unit Import.Deferred.tval chdir : string ‑> unit Import.Deferred.tval getcwd : unit ‑> string Import.Deferred.tval readdir : string ‑> string array Import.Deferred.tval ls_dir : string ‑> string list Import.Deferred.tval home_directory : unit ‑> string Import.Deferred.tval interactive : bool Core.ref