diff --git a/src/get.rs b/src/get.rs index 07f84f2..ac1161d 100644 --- a/src/get.rs +++ b/src/get.rs @@ -627,6 +627,16 @@ where inner(cache.as_ref(), key.as_ref(), to.as_ref()) } +/// Hard links a cache entry by integrity address to a specified location, +/// verifying contents as hard links are created. +pub fn hard_link_hash_sync(cache: P, sri: &Integrity, to: Q) -> Result<()> +where + P: AsRef, + Q: AsRef, +{ + read::hard_link(cache.as_ref(), sri, to.as_ref()) +} + /// Hard links a cache entry by integrity address to a specified location. The /// cache entry contents will not be checked, and all the usual caveats of /// hard links apply: The potentially-shared cache might be corrupted if the