val hash : t -> int
val to_string : t -> string
val from_hex : string -> t option
val string : string -> t
val to_string_raw : t -> string
val generic : 'a -> t
module Stats_for_digest : sig ... end
The subset of fields of
Unix.stats used by this module.
module Path_digest_result : sig ... end
Digest a path taking into account its
- If it's a regular file, the resulting digest includes the file's content as well as the its executable permissions bit.
- If it's a directory and
allow_dirs = true, the function computes the digest of all contained filename/digest pairs, recursively.
- Otherwise, the function returns
Note that this interface is prone to races: the provided
Stats_for_digest may get stale, so
path_with_stats may return
Unix_error (ENOENT, _, _) even though you've just successfully run
Path.stat on it. The call sites are expected to gracefully handle such races.
Digest a file taking the
executable bit into account. Should not be called on a directory.
Override the implementations of digest computation. Can be used to record the reverse digest map.
module Direct_impl : sig ... end
Direct_impl does a plain hashing, with no heed to the overrides given by