diff --git a/src/util/semi_persistent_cache_dir.rs b/src/util/semi_persistent_cache_dir.rs index 6070f4a0cc..a3e226c863 100644 --- a/src/util/semi_persistent_cache_dir.rs +++ b/src/util/semi_persistent_cache_dir.rs @@ -60,14 +60,14 @@ impl SemiPersistentCacheDir { /// We cache W2L faces here. /// We'll likely need to LRU cache them. pub fn w2l_face_template_path(&self, template_private_bucket_hash: &str) -> PathBuf { - self.w2l_face_templates_root.join(template_private_bucket_hash) + let filename = format!("{}_detected_faces.pickle", template_private_bucket_hash); + self.w2l_face_templates_root.join(filename) } pub fn w2l_face_template_directory(&self) -> &Path { &self.w2l_face_templates_root } - pub fn create_w2l_face_template_path(&self) -> AnyhowResult<()> { let _ = fs::create_dir_all(self.w2l_face_template_directory())?; Ok(())