change name

This commit is contained in:
Brandon Thomas committed 2021-05-29 01:28:38 -04:00
1 parent 9e9c4deb34
commit e2cc57dd1e
1 file changed
+2 -2
+2 -2
View File
@@ -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(())