mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 00:47:53 +00:00
change name
This commit is contained in:
1 parent
9e9c4deb34
commit
e2cc57dd1e
1 file changed
+2
-2
@@ -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(())
|
||||
|
||||
Reference in new issue
Block a user