Module Maki.File_ref

type t

An immutable reference to a file, as a path, with a hash of its content. If the file changes on the filesystem, the reference becomes invalid.

val path : t ‑> path
val hash : t ‑> hash
val to_string : t ‑> string
val make : path ‑> t or_error Lwt.t

Make a file ref out of a simple path

val make_exn : path ‑> t Lwt.t
val is_valid : t ‑> bool Lwt.t

Check if the reference is up-to-date (i.e. the file content did not change)

val codec : t Codec.t