+};
+
+const getParentId = (item: CollectionDirectory | CollectionFile) =>
+ item.path
+ ? join('', [getCollectionResourceCollectionUuid(item.id), item.path])
+ : item.path;
+
+export const getCollectionResourceCollectionUuid = pipe(
+ split('/'),
+ head,
+);