xferhint.mli (797B)
1 (* Unison file synchronizer: src/xferhint.mli *) 2 (* Copyright 1999-2020, Benjamin C. Pierce (see COPYING for details) *) 3 4 (* This module maintains a cache that can be used to map 5 an Os.fullfingerprint to a (Fspath.t * Path.t) naming a file that *may* 6 (if we are lucky) have this fingerprint. The cache is not guaranteed 7 to be reliable -- the things it returns are only hints, and must be 8 double-checked before they are used (to optimize file transfers). *) 9 10 val xferbycopying: bool Prefs.t 11 12 type handle 13 14 (* Suggest a file that's likely to have a given fingerprint *) 15 val lookup: Os.fullfingerprint -> (Fspath.t * Path.local * handle) option 16 17 (* Add a file *) 18 val insertEntry: Fspath.t -> Path.local -> Os.fullfingerprint -> unit 19 20 (* Delete an entry *) 21 val deleteEntry: handle -> unit