pub fn calculate_hash_cancellable<P: AsRef<Path>>( path: P, cancel: Option<&AtomicBool>, ) -> Result<String>