diff --git a/libimagannotation/src/annotation.rs b/libimagannotation/src/annotation.rs index 33dd3644..5e2ad2fc 100644 --- a/libimagannotation/src/annotation.rs +++ b/libimagannotation/src/annotation.rs @@ -71,5 +71,13 @@ impl Annotateable for FileLockEntry { fn annotate_with_path_generator(&self, store: &Store, pg: &AnnotationPathGenerator) -> Result { + pb.generate_annotation_path() + .and_then(|id| store.create(id).map_err_into(AEK::StoreWriteError)) + .and_then(|mut fle| { + self.add_internal_link(&mut fle) + .map_err_into(AEK::LinkingError) + .map(|_| fle) + }) + .map(Annotation) } }