Update src/hdf5_writer.py to record unflattened path from original folder

This commit is contained in:
2025-06-25 14:11:56 +02:00
parent dacafb6234
commit 6c908e6686

View File

@ -173,7 +173,7 @@ def create_hdf5_file_from_filesystem_path(path_to_input_directory: str,
# Attach per-file metadata if available
if filename in metadata_dict:
file_dict.get("attributes_dict",{}).update(metadata_dict[filename])
file_dict.get("attributes_dict",{}).update({'original_path' : dirpath})
stdout = hdf5_ops.save_file_dict_to_hdf5(dest_file_obj, group_name, file_dict)
else: