ensure annotation directory for new annotations

This commit is contained in:
Alok Saldanha
2021-03-29 07:03:05 -04:00
parent 76f3939fdd
commit 586dc6623a
2 changed files with 6 additions and 0 deletions
@@ -130,6 +130,7 @@ class FileItemSource(ItemSource):
)
item = self.lookup_item(h5ad_descriptor)
if item is not None:
dir_util.ensure_dir_exists(self.full_path(annotation_item.subpath))
return LookupResult(item, annotation_item)
else:
item = self.lookup_item(descriptor)