only create aggregation with aggregation metadata ingestion for singlefile and fileset
@@ -272,12 +272,9 @@ def ingest_logical_file_metadata(metadata_file, resource):
res_file = resource.files.get(file_folder=file_path)
if res_file:
FileSetLogicalFile.set_file_type(resource, None, folder_path=file_path)
- else:
+ elif logical_file_class is GenericLogicalFile:
aggregation_main_file_with_path = subject.split('_resmap.xml')[0]
file_path = aggregation_main_file_with_path.split('data/contents/', 1)[1]
- if logical_file_class is RefTimeseriesLogicalFile:
- file_path = file_path + '.json'
- if logical_file_class is GenericLogicalFile:
# single file logical files have a potential name clash, so we have to guess what the file is
# the name clash is a larger problem than just here and we should work to resolve it
if '/' in file_path:
