fpcache.mli (932B)
1 (* Unison file synchronizer: src/fpcache.mli *) 2 (* Copyright 1999-2020, Benjamin C. Pierce (see COPYING for details) *) 3 4 (* Initialize the cache *) 5 val init : bool -> bool -> string -> unit 6 7 (* Close the cache file and clear the in-memory cache *) 8 val finish : unit -> unit 9 10 (* Get the fingerprint of a file, possibly from the cache *) 11 val fingerprint : 12 ?newfile:bool -> 13 bool -> Fspath.t -> Path.local -> Fileinfo.t -> Os.fullfingerprint option -> 14 Props.t * Os.fullfingerprint * Fileinfo.stamp * Osx.ressStamp 15 16 (* Add an entry to the cache *) 17 val save : 18 Path.local -> 19 Props.t * Os.fullfingerprint * Fileinfo.stamp * Osx.ressStamp -> unit 20 21 (****) 22 23 val dataClearlyUnchanged : 24 bool -> Path.local -> Fileinfo.t -> Props.t -> Fileinfo.stamp -> bool 25 val ressClearlyUnchanged : 26 bool -> Fileinfo.t -> 'a Osx.ressInfo -> bool -> bool 27 (* Is that a file for which fast checking is disabled? *) 28 val excelFile : Path.local -> bool